2018-12-28 11:23:49 +01:00
|
|
|
# Playbook command
|
|
|
|
# ansible-playbook prerequisite.yml -CDi hosts -l HOSTNAME
|
|
|
|
|
|
|
|
---
|
2020-05-22 17:49:18 +02:00
|
|
|
- hosts: all
|
2020-06-01 11:37:15 +02:00
|
|
|
become: true
|
2020-05-22 17:49:18 +02:00
|
|
|
become_method: su
|
|
|
|
user: root
|
2020-06-01 11:37:15 +02:00
|
|
|
gather_facts: false
|
2018-12-28 11:23:49 +01:00
|
|
|
|
2020-05-22 17:49:18 +02:00
|
|
|
tasks:
|
2018-12-28 11:23:49 +01:00
|
|
|
|
|
|
|
- name: Install ansible's prerequisite
|
2020-06-04 18:51:53 +02:00
|
|
|
# yamllint disable-line rule:line-length
|
2020-10-23 11:38:56 +02:00
|
|
|
raw: export PKG_PATH=http://ftp.eu.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(uname -p)/; pkg_add -z python-3
|
2022-11-16 15:23:43 +01:00
|
|
|
changed_when: true
|
2018-12-28 11:23:49 +01:00
|
|
|
|
|
|
|
# vim:ft=ansible
|