-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
54 lines (43 loc) · 1.13 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
---
- name: configure server
hosts: local
become: true
connection: local
gather_facts: false
tasks:
- name: upgrade all packages
yum: update_cache=yes name=* state=latest
- name: disable selinux [1/2]
selinux:
policy: targeted
state: permissive
- name: disable selinux [2/2]
shell: "setenforce 0"
- name: disable firewalld
service:
name: firewalld
state: stopped
enabled: false
- name: get playbooks
copy:
src: playbooks
dest: /etc/ansible/
- name: get createsmbuser script
copy:
src: createsmbuser
dest: /usr/local/bin/
mode: 0777
- name: get api binary binaries
get_url:
url: "https://github.com/rh363/apiansible/releases/download/v1.1/apiansible"
dest: /usr/local/bin/
mode: 0777
- name: get service
copy:
src: apiansible.service
dest: /etc/systemd/system/apiansible.service
- name: start service
service:
name: apiansible
state: restarted
enabled: true