~xenrox/ansible

ref: f9f9a1078a40d7972c37b6de7f6b5d163e3a5bc1 ansible/molecule/default/prepare.yml -rw-r--r-- 541 bytes
f9f9a107Thorben Günther molecule: Improve prepare playbook a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
- name: prepare hosts
  hosts: all
  tasks:
    - name: Setup openssh
      block:
        - name: Install
          ansible.builtin.package:
            name: openssh
            state: present

        - name: Start # for host keys
          ansible.builtin.systemd:
            name: sshd
            state: started

    - name: Setup Arch Linux keyring
      block:
        - name: Init
          ansible.builtin.command: pacman-key --init

        - name: Populate
          ansible.builtin.command: pacman-key --populate archlinux