-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
35 lines (33 loc) · 936 Bytes
/
site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
- hosts: all
remote_user: root
environment:
PATH: "/opt/local/sbin:/opt/local/bin:{{
(ansible_env|default({})).PATH|default('/usr/bin:/usr/sbin') }}"
vars:
- ansible_python_interpreter: /opt/local/bin/python
tasks:
- pkgin: name=python27 state=present
- name: Creates directory
file:
path: /usbkey/config.inc
state: directory
- name: add authorized_keys
copy:
src: "templates/root_authorized_keys"
dest: "/usbkey/config.inc/authorized_keys"
mode: 0600
- name: update config
template:
src: config.j2
dest: "/usbkey/config"
- name: update system config
shell: sysinfo -u
- name: Add a project fifo
imgadm:
source: 'https://datasets.project-fifo.net'
state: present
- name: Import fifo aio
imgadm:
uuid: '1abd7f9e-dee6-48e2-b3b2-1bd19040533a'
state: imported