split playbooks
This commit is contained in:
@@ -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
|
||||
gather_facts: true
|
||||
|
||||
Reference in New Issue
Block a user