Skip to content

Commit

Permalink
Merge pull request #20 from remerge/CORE-135-fix-duplicate-log
Browse files Browse the repository at this point in the history
CORE-135 Fix duplicate log messages from nomad agent
  • Loading branch information
hollow authored Jul 21, 2023
2 parents 336d4bb + 98b63b2 commit 631b139
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,25 @@
when:
- nomad_install_package

- name: Create nomad service override directory
ansible.builtin.file:
path: /etc/systemd/system/nomad.service.d
state: directory
owner: root
group: root
mode: 0755

- name: Override nomad.service
ansible.builtin.copy:
dest: /etc/systemd/system/nomad.service.d/override.conf
content: |
[Service]
StandardOutput=null
StandardError=null
mode: 0644
notify:
- Restart nomad

- name: Create nomad_config_dir
ansible.builtin.file:
path: "{{ nomad_config_dir }}"
Expand Down

0 comments on commit 631b139

Please sign in to comment.