Working on qubes playbook
This commit is contained in:
parent
ae63be1df6
commit
ed68d23c6c
7 changed files with 558 additions and 13 deletions
|
@ -1,21 +1,13 @@
|
|||
- name: My first play
|
||||
hosts: myhosts
|
||||
- name: Configure SSH
|
||||
hosts: inferencehosts
|
||||
tasks:
|
||||
# - name: Ping my hosts
|
||||
# ansible.builtin.ping:
|
||||
# - name: Reboot machine
|
||||
# ansible.builtin.reboot:
|
||||
# msg: "Rebooting machine..."
|
||||
# - name: Print message
|
||||
# ansible.builtin.debug:
|
||||
# msg: Hello world
|
||||
- name: Set authorized key taken from file
|
||||
ansible.posix.authorized_key:
|
||||
user: root
|
||||
key: "{{ lookup('file', './config/id_ed25519.pub') }}"
|
||||
user: joyeuse
|
||||
key: "{{ lookup('file', '../config/id_ed25519.pub') }}"
|
||||
- name: Copy over SSHD config file
|
||||
ansible.builtin.copy:
|
||||
src: ./config/sshd_config
|
||||
src: ../config/sshd_config
|
||||
dest: /etc/ssh/sshd_config
|
||||
owner: root
|
||||
group: root
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue