Working on qubes playbook

This commit is contained in:
mustard 2024-12-22 17:55:26 +01:00
parent ae63be1df6
commit ed68d23c6c
7 changed files with 558 additions and 13 deletions

View file

@ -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