blob: 0309cf70266b4c08df0455946486f480d55acbc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
---
- !policy
id: ansible
annotations:
description: Policy for Ansible master and remote hosts
body:
- !host
id: ansible-master
annotations:
description: Host for running Ansible on remote targets
- !layer &remote_hosts_layer
id: remote_hosts
annotations:
description: Layer for Ansible remote hosts
- !host-factory
id: ansible-factory
annotations:
description: Factory to create new hosts for ansible
layer: [ *remote_hosts_layer ]
- !variable
id: target-password
annotations:
description: Password needed by the Ansible remote machine
- !permit
role: *remote_hosts_layer
privileges: [ execute ]
resources: [ !variable target-password ]
|