commit 2dbd3b12386f249b3ab569a2e2d3e6f7859342e4 parent e47b6f039ac14902d7c57546884089c6ef3e659e Author: Leonardo Galves <[email protected]> Date: Tue, 16 Aug 2022 20:01:57 -0300 Add a role test Diffstat:
A | playbooks/test.yml | | | 6 | ++++++ |
A | roles/foo/tasks/main.yml | | | 9 | +++++++++ |
D | test.yml | | | 9 | --------- |
3 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/playbooks/test.yml b/playbooks/test.yml @@ -0,0 +1,6 @@ +--- +- name: Deploy h1-cmapi1 + hosts: h1-crmapi1 + roles: + - ../roles/foo + diff --git a/roles/foo/tasks/main.yml b/roles/foo/tasks/main.yml @@ -0,0 +1,9 @@ +--- +- name: Create a file + file: + path: /tmp/foo.conf + owner: root + group: root + mode: 0644 + state: present + become: yes diff --git a/test.yml b/test.yml @@ -1,9 +0,0 @@ ---- -- name: Deploy h1-cmapi1 - hosts: h1-crmapi1 - tasks: - - name: Ensure exists /tmp/test - copy: - dest: /tmp/test - content: Apenas um teste -