Fix bootstrapping, use https URL for ansible scripts

This commit is contained in:
Salt 2019-09-15 02:30:46 -05:00
parent 8f7f53e96c
commit 4f5fe365fc
2 changed files with 21 additions and 1 deletions

View File

@ -47,7 +47,7 @@
become_user: salt become_user: salt
- name: Clone Ansible repository - name: Clone Ansible repository
git: git:
repo: git@gitlab.com:rehashedsalt/ansible repo: https://gitlab.com/rehashedsalt/ansible
dest: ~/Projects/ansible dest: ~/Projects/ansible
become: true become: true
become_user: salt become_user: salt

View File

@ -54,3 +54,23 @@
when: not p.stat.exists when: not p.stat.exists
become: yes become: yes
become_user: salt become_user: salt
- name: Execute bootstrap script
shell: cd && ~/bootstrap/build-home.sh
when: not p.stat.exists
become: yes
become_user: salt
- name: Remove bootstrap script directory
file:
path: ~/bootstrap
state: absent
when: not p.stat.exists
become: yes
become_user: salt
- name: Disable untracked files on dotfiles
git_config:
name: status.showUntrackedFiles
value: "no"
scope: local
repo: ~/.dotfiles
become: yes
become_user: salt