From 4f5fe365fcd8bdf994b0f2f827ba2c36dc24e8d1 Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 15 Sep 2019 02:30:46 -0500 Subject: [PATCH] Fix bootstrapping, use https URL for ansible scripts --- roles/ansiblehost/tasks/main.yml | 2 +- roles/user/tasks/main.yml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/roles/ansiblehost/tasks/main.yml b/roles/ansiblehost/tasks/main.yml index d2a046b..06f52ec 100644 --- a/roles/ansiblehost/tasks/main.yml +++ b/roles/ansiblehost/tasks/main.yml @@ -47,7 +47,7 @@ become_user: salt - name: Clone Ansible repository git: - repo: git@gitlab.com:rehashedsalt/ansible + repo: https://gitlab.com/rehashedsalt/ansible dest: ~/Projects/ansible become: true become_user: salt diff --git a/roles/user/tasks/main.yml b/roles/user/tasks/main.yml index d7421fd..9db33d6 100644 --- a/roles/user/tasks/main.yml +++ b/roles/user/tasks/main.yml @@ -54,3 +54,23 @@ when: not p.stat.exists become: yes 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