Skip to content

Commit

Permalink
Merge pull request #18 from Diesel-Net/development
Browse files Browse the repository at this point in the history
Promotion
  • Loading branch information
tomdaley92 authored Jan 22, 2022
2 parents 67c519b + 356de14 commit 5d177c7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
3 changes: 1 addition & 2 deletions defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
docker_socket: /var/run/docker.sock
docker_volumes: /var/lib/docker/volumes

docker_network: diesel_net
docker_compose_template: docker-compose.yaml.j2
docker_stack_name: '{{ repository }}_{{ version | replace("/", "-") }}'
docker_stack: '{{ docker_stack_name[:64] | lower }}' # 64 char limit (docker)
docker_registry: docker.nexus.diesel.net
Expand Down
6 changes: 5 additions & 1 deletion meta/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ galaxy_info:
- host

dependencies:
- common
- name: common
scm: git
src: "[email protected]:Diesel-Net/ansible-role-common.git"
version: 1.2.0
- ubuntu
2 changes: 1 addition & 1 deletion tasks/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
become: yes

- name: "add user to the docker group"
command: "usermod -aG docker {{ user }}"
command: "usermod -aG docker {{ automation_user }}"
become: yes

- name: reset ssh connection to allow user changes to affect 'current login user'
Expand Down
2 changes: 1 addition & 1 deletion tasks/stack_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

- name: render docker-compose.yaml.j2 to {{ docker_dir }}/docker-compose.yaml
template:
src: docker-compose.yaml.j2
src: '{{ docker_compose_template }}'
dest: '{{ docker_dir }}/docker-compose.yaml'
mode: '0740'

Expand Down
4 changes: 4 additions & 0 deletions tasks/system_prune.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
docker system prune --force {{ options }}
vars:
options: ''
register: prune_output

- debug:
msg: '{{ prune_output.stdout_lines }}'

0 comments on commit 5d177c7

Please sign in to comment.