~xenrox/ansible

ref: 26d5319dc85634012cbadad4bbd840ea88c3e0bc ansible/molecule/default/prepare.yml -rw-r--r-- 619 bytes
26d5319dThorben Günther Make ansible-lint happy 6 months 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 openssh
          ansible.builtin.package:
            name: openssh
            state: present

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

    - name: Setup Arch Linux keyring
      block:
        - name: Init keyring # noqa no-changed-when
          ansible.builtin.command: pacman-key --init

        - name: Populate keyring # noqa no-changed-when
          ansible.builtin.command: pacman-key --populate archlinux