examples: simplify example playbooks.
parent
719316daef
commit
49d944340d
@ -1,101 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
connection: local
|
|
||||||
command: hostname
|
|
@ -1,202 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
||||||
- name: "My Role"
|
|
||||||
command: hostname
|
|
@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: "This command should run as the SSH user"
|
|
||||||
command: whoami
|
|
||||||
|
|
||||||
- name: "This command should run as root"
|
|
||||||
become: true
|
|
||||||
command: whoami
|
|
@ -1,6 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
tasks:
|
||||||
- whoami
|
- name: "This command should run as the SSH user"
|
||||||
|
command: whoami
|
||||||
|
register: whoami
|
||||||
|
|
||||||
|
- name: "Verify non-become user is correct"
|
||||||
|
assert:
|
||||||
|
that: "whoami.stdout == '{{ansible_user_id}}'"
|
||||||
|
|
||||||
|
- name: "This command should run as root"
|
||||||
|
become: true
|
||||||
|
command: whoami
|
||||||
|
register: whoami
|
||||||
|
|
||||||
|
- name: "Verify become user is correct"
|
||||||
|
assert:
|
||||||
|
that: "whoami.stdout == 'root'"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue