Skip to content

Commit

Permalink
fix(vmagent): set correct dir logic
Browse files Browse the repository at this point in the history
  • Loading branch information
alesharik committed Aug 10, 2024
1 parent 73d8796 commit 0f79d20
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions roles/vmagent/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
owner: '10001'
mode: 0700
tags: vmagent
- name: Make config folder
ansible.builtin.file:
path: "{{ dir.ansible }}/vmagent/config"
state: directory
mode: 0755
tags: vmagent
- name: Make extended config folder
ansible.builtin.file:
path: "{{ dir.ansible }}/vmagent/config/conf.d"
state: directory
mode: 0755
tags: vmagent

- name: Read password
tags: vmagent
Expand Down Expand Up @@ -51,18 +63,6 @@
tags: vmagent
notify:
- restart vmagent
- name: Make config folder
ansible.builtin.file:
path: "{{ dir.ansible }}/vmagent/config"
state: directory
mode: 0755
tags: vmagent
- name: Make extended config folder
ansible.builtin.file:
path: "{{ dir.ansible }}/vmagent/config/conf.d"
state: directory
mode: 0755
tags: vmagent
- name: Move config
ansible.builtin.template:
src: config.yaml
Expand Down

0 comments on commit 0f79d20

Please sign in to comment.