Continue work

This commit is contained in:
Austen Adler 2018-07-08 00:51:09 -04:00
parent 3b1c3037f3
commit 521cbd0c2d
5 changed files with 29 additions and 27 deletions

View File

@ -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]}

View File

@ -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 }}"

View File

@ -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"

View 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"

View File

@ -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"