Skip to content

Commit

Permalink
Merge pull request #14 from kibatic/disable_log
Browse files Browse the repository at this point in the history
Disable logs for unit related tasks
  • Loading branch information
eliecharra authored Jan 8, 2019
2 parents 28cbfdd + 8f0cf0a commit d706fac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/create_unit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
- name: create unit
with_items: "{{systemd_units}}"
no_log: True
template: src={{ item.template_name|default('default') }}.service.j2
dest=/lib/systemd/system/{{ item.name }}.service
tags:
Expand All @@ -14,6 +15,7 @@

- name: create env file
with_items: "{{systemd_units}}"
no_log: True
template: src=environment.j2
dest="/etc/sysconfig/{{ item.name }}"
tags:
Expand Down Expand Up @@ -51,6 +53,7 @@

- name: create docker networks
with_items: "{{systemd_units}}"
no_log: True
shell: docker network create {{ item.network|default(default_network_name) }} || true
tags:
- systemd
Expand All @@ -64,6 +67,7 @@

- name: enable service
shell: systemctl enable {{ item.name }}
no_log: True
with_items: "{{systemd_units}}"
tags:
- systemd
Expand All @@ -72,6 +76,7 @@
- name: restart service
when: item.restart_unit|default(restart_units) == true
with_items: "{{systemd_units}}"
no_log: True
shell: "systemctl restart {{ item.name }}"
tags:
- systemd
Expand Down

0 comments on commit d706fac

Please sign in to comment.