1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2025-01-03 15:05:23 +01:00
doorlockd-mirror/ansible/roles/base/tasks/main.yml
Thomas Schmid f6cbca5bf2 ansible: improve python installation
Signed-off-by: Thomas Schmid <tom@binary-kitchen.de>
2019-07-08 22:54:37 +02:00

26 lines
517 B
YAML

---
- name: Pacman key init
raw: pacman-key --init
- name: Pacman key populate
raw: |
if [[ "`uname -m`" == "armv7l" ]]; then
pacman-key --populate archlinuxarm
else
pacman-key --populate archlinux
fi
- name: Update System
raw: pacman -Syu --noconfirm
- name: Install Python
raw: pacman -S python --noconfirm --needed
- name: Gather facts
setup:
- name: Add authorized keys
authorized_key:
user: root
key: "{{ pub_keys|map(attribute='key')|join('\n') }}"