commit 321b2e0e2929773dcb2bdb9639a0f2da98e7353d
parent cdb55c4936a8f31a86c5cacec706d3d2b062ec43
Author: Leonardo Galves <[email protected]>
Date: Tue, 16 Aug 2022 20:09:26 -0300
Test a role path
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/playbooks/test.yml b/playbooks/test.yml
@@ -2,5 +2,5 @@
- name: Deploy h1-cmapi1
hosts: h1-crmapi1
roles:
- - ../roles/foo
+ - foo
diff --git a/roles/foo/tasks/main.yml b/roles/foo/tasks/main.yml
@@ -1,9 +1,9 @@
---
- name: Create a file
- file:
- path: /tmp/foo.conf
+ copy:
+ dest: /tmp/foo.conf
owner: root
group: root
mode: 0644
- state: file
+ content: A test
become: yes