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
|
|
|
|
become: yes
|
|
|
|
become_method: su
|
|
|
|
user: root
|
|
|
|
gather_facts: no
|
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
|
|
|
|
raw: export PKG_PATH=http://ftp.eu.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(uname -p)/; pkg_add -z python-2
|
|
|
|
|
|
|
|
# vim:ft=ansible
|