Continue work
This commit is contained in:
parent
3b1c3037f3
commit
521cbd0c2d
3
main.yml
3
main.yml
@ -8,8 +8,9 @@
|
|||||||
private_repo: "git@austenwares.com:stonewareslord/private"
|
private_repo: "git@austenwares.com:stonewareslord/private"
|
||||||
overwrite_existing: no
|
overwrite_existing: no
|
||||||
roles:
|
roles:
|
||||||
|
- {role: core, tags: [core,default]}
|
||||||
- {role: clean, tags: [clean]}
|
- {role: clean, tags: [clean]}
|
||||||
- {role: core, tags: [default]}
|
- {role: default, tags: [default]}
|
||||||
- {role: private, tags: [private]}
|
- {role: private, tags: [private]}
|
||||||
- {role: youcompleteme, tags: [youcompleteme]}
|
- {role: youcompleteme, tags: [youcompleteme]}
|
||||||
- {role: secure, become: yes, tags: [secure]}
|
- {role: secure, become: yes, tags: [secure]}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
path: "{{ install_path }}/{{ item.path }}"
|
path: "{{ install_path }}/{{ item.path }}"
|
||||||
state: absent
|
state: absent
|
||||||
with_filetree: "skel/"
|
with_filetree: "skel/"
|
||||||
|
when: item.state == 'file'
|
||||||
- name: Remove cloned repositories
|
- name: Remove cloned repositories
|
||||||
file:
|
file:
|
||||||
path: "{{ install_path }}/{{ item }}"
|
path: "{{ install_path }}/{{ item }}"
|
||||||
|
@ -5,27 +5,3 @@
|
|||||||
clone: yes
|
clone: yes
|
||||||
update: yes
|
update: yes
|
||||||
force: yes
|
force: yes
|
||||||
- name: Create directories
|
|
||||||
file:
|
|
||||||
path: "{{ install_path }}/{{ item.path }}"
|
|
||||||
state: directory
|
|
||||||
force: "{{ overwrite_existing }}"
|
|
||||||
with_filetree: "skel/"
|
|
||||||
when: item.state == 'directory'
|
|
||||||
- name: Link files
|
|
||||||
file:
|
|
||||||
src: "{{ item.src }}"
|
|
||||||
dest: "{{ install_path }}/{{ item.path }}"
|
|
||||||
state: link
|
|
||||||
force: "{{ overwrite_existing }}"
|
|
||||||
with_filetree: "skel/"
|
|
||||||
when: item.state == 'file'
|
|
||||||
- name: Clone fzf
|
|
||||||
git:
|
|
||||||
repo: "https://gitea.austenwares.com/stonewareslord/fzf.git"
|
|
||||||
dest: "{{ install_path }}/.fzf"
|
|
||||||
clone: yes
|
|
||||||
update: yes
|
|
||||||
force: yes
|
|
||||||
- name: Install fzf
|
|
||||||
shell: "{{ install_path|quote }}/.fzf/install --bin"
|
|
||||||
|
24
roles/default/tasks/main.yml
Normal file
24
roles/default/tasks/main.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
- name: Create directories
|
||||||
|
file:
|
||||||
|
path: "{{ install_path }}/{{ item.path }}"
|
||||||
|
state: directory
|
||||||
|
force: "{{ overwrite_existing }}"
|
||||||
|
with_filetree: "skel/"
|
||||||
|
when: item.state == 'directory'
|
||||||
|
- name: Link files
|
||||||
|
file:
|
||||||
|
src: "{{ sync_path }}/skel/{{ item.path }}"
|
||||||
|
dest: "{{ install_path }}/{{ item.path }}"
|
||||||
|
state: link
|
||||||
|
force: "{{ overwrite_existing }}"
|
||||||
|
with_filetree: "skel/"
|
||||||
|
when: item.state == 'file'
|
||||||
|
- name: Clone fzf
|
||||||
|
git:
|
||||||
|
repo: "https://gitea.austenwares.com/stonewareslord/fzf.git"
|
||||||
|
dest: "{{ install_path }}/.fzf"
|
||||||
|
clone: yes
|
||||||
|
update: yes
|
||||||
|
force: yes
|
||||||
|
- name: Install fzf
|
||||||
|
shell: "{{ install_path|quote }}/.fzf/install --bin"
|
@ -1,7 +1,7 @@
|
|||||||
- name: Clone private repo
|
- name: Clone private repo
|
||||||
git:
|
git:
|
||||||
repo: "{{ private_repo }}"
|
repo: "{{ private_repo }}"
|
||||||
dest: "{{ playbook_dir }}/private"
|
dest: "{{ sync_path }}/private"
|
||||||
clone: yes
|
clone: yes
|
||||||
update: yes
|
update: yes
|
||||||
- name: Create priavte directories
|
- name: Create priavte directories
|
||||||
@ -13,7 +13,7 @@
|
|||||||
when: item.state == 'directory'
|
when: item.state == 'directory'
|
||||||
- name: Copy priavte files
|
- name: Copy priavte files
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item.src }}"
|
src: "{{ sync_path }}/private/skel/{{ item.path }}"
|
||||||
dest: "{{ install_path }}/{{ item.path }}"
|
dest: "{{ install_path }}/{{ item.path }}"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
Loading…
Reference in New Issue
Block a user