-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.yml
32 lines (32 loc) · 842 Bytes
/
install.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
- name: "install deploy"
hosts: all
gather_facts: no
tasks:
- name: "1/3: mkdir ~/.bin"
file:
path: '~/.bin'
mode: 0755
state: directory
- name: "2/3: PATH to ~/.bashrc"
lineinfile:
path: ~/.bashrc
state: present
regexp: '^export PATH=~/.bin:$PATH'
line: "export PATH=~/.bin:$PATH"
- name: "3/3: copy deploy.sh task.yml"
copy:
src: './{{item.src}}'
dest: '{{item.dest}}'
backup: no
mode: "u+rwx,g-wx,o-wx"
with_items:
- src: deploy.sh
dest: ~/.bin/deploy
- src: task.yml
dest: ~/.bin/task.yml
- src: deploy_vars.yml
dest: ~/.deploy_vars.yml
- src: ansible.cfg
dest: ~/.ansible.cfg
- src: service.sh
dest: ~/.bin/service.sh