split playbooks
This commit is contained in:
9
glusterfs/ansible/deploy_key.yml
Normal file
9
glusterfs/ansible/deploy_key.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
- hosts: bastion
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- name: Set authorized key taken from file
|
||||||
|
ansible.posix.authorized_key:
|
||||||
|
user: clusteruser
|
||||||
|
state: present
|
||||||
|
key: "{{ lookup('file', './files/ansible_key.pub') }}"
|
||||||
@@ -1,12 +1,4 @@
|
|||||||
---
|
---
|
||||||
- hosts: bastion
|
|
||||||
gather_facts: false
|
|
||||||
tasks:
|
|
||||||
- name: Set authorized key taken from file
|
|
||||||
ansible.posix.authorized_key:
|
|
||||||
user: clusteruser
|
|
||||||
state: present
|
|
||||||
key: "{{ lookup('file', './files/ansible_key.pub') }}"
|
|
||||||
|
|
||||||
- hosts: test_server
|
- hosts: test_server
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
|||||||
Reference in New Issue
Block a user