-
Notifications
You must be signed in to change notification settings - Fork 1
/
local.yml
55 lines (51 loc) · 1.5 KB
/
local.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# RosiePi Ansible Playbook
# To be used with 'ansible-pull'
# See the README for usage instructions.
---
- hosts: localhost
pre_tasks:
- name: Update apt package index
become: yes
apt:
update_cache: yes
changed_when: false
- name: Ensure services are stopped
become: yes
check_mode: no
block:
- name: Ensure httpd is stopped
command: apache2ctl -k graceful-stop
- name: Ensure redis-server is stopped
systemd:
name: redis
state: stopped
- name: Ensure rosie-rq-worker is stopped
systemd:
name: rosie-rq-worker
state: stopped
rescue:
- debug:
msg: "{{ ansible_failed_task }}"
ignore_errors: yes
- name: Run users_groups
import_playbook: taskbook/users_groups.yml
- name: Run cron
import_playbook: taskbook/cron.yml
- name: Run system_config
import_playbook: taskbook/system_config.yml
- name: Run packages
import_playbook: taskbook/packages.yml
- name: Run apache_config
import_playbook: taskbook/apache_config.yml
- name: Run redis_rq
import_playbook: taskbook/redis_rq.yml
- name: Run circuitpython_build
import_playbook: taskbook/circuitpython_build.yml
- name: Run rosie_pi
import_playbook: taskbook/rosie_pi.yml
- name: Run rosie_app
import_playbook: taskbook/rosiepi_node_server.yml
- name: Run physaci_subscriber.yml
import_playbook: taskbook/physaci_subscriber.yml
- name: Reboot
import_playbook: taskbook/reboot.yml