-
Notifications
You must be signed in to change notification settings - Fork 0
/
runner03.yml
63 lines (55 loc) · 2.06 KB
/
runner03.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
56
57
58
59
60
61
62
63
---
- name: Play for runner.hayaworld.local
hosts: runner03
remote_user: hayato
gather_facts: true
become: true
vars_files:
- inventories/host_vars/runner.yml
- inventories/host_vars/networks.yml
tasks:
- name: Common Settings
ansible.builtin.import_tasks:
file: tasks/all/main.yml
- name: Add user for runner execution
ansible.builtin.user:
name: runner
shell: /bin/bash
groups: sudo
append: true
expires: -1
password: !vault |
$ANSIBLE_VAULT;1.1;AES256
35396461333037373131613065336237613637643565343833636632366264343231633835616630
3162656437393964643034353532393635303533313030360a626435656564333834633236356339
30393138333338626661383031613238363837656162366137396138316237666462636536643661
6134363865303766380a363263363265346661613535656463313131623562323032393433623632
66313639626230323234633966303236663763306539303039363533333039616336386362383935
66613963363232656361663135626438633462353930646362373631646630346331333039336561
35643533323161663661633630366264333136633230306562373730356334336266326134386166
62336230323939303137
- name: Put authorized Key for runner
ansible.builtin.import_tasks:
file: tasks/runner/authorized_keys.yml
- name: Install Docker(ce)
ansible.builtin.import_role:
name: geerlingguy.docker
vars:
docker_edition: 'ce'
docker_packages_state: present
docker_service_manage: true
docker_service_state: started
docker_service_enabled: true
docker_restart_handler_state: restarted
docker_users:
- hayato
- runner
- name: Install Pre-builded Rename-util
ansible.builtin.import_tasks:
file: tasks/install_rename.yml
- name: Install Pre-builded SNS downloaders
ansible.builtin.import_tasks:
file: tasks/sns_dl.yml
- name: Install Ansible from PPA
ansible.builtin.import_tasks:
file: tasks/ansible_install.yml