diff --git a/roles/vmagent/tasks/main.yaml b/roles/vmagent/tasks/main.yaml index 5d41f86..345cccc 100644 --- a/roles/vmagent/tasks/main.yaml +++ b/roles/vmagent/tasks/main.yaml @@ -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 @@ -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