~xenrox/ansible

ref: d4811867b5f542c4fb92a2ef6792b5a0ca28af3b ansible/molecule/default/prepare.yml -rw-r--r-- 573 bytes
d4811867Thorben Günther srht: Fix webhook redis allocation 2 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
          ansible.builtin.command: pacman-key --init

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