aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/my_dotfiles/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--roles/my_dotfiles/tasks/main.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/my_dotfiles/tasks/main.yml b/roles/my_dotfiles/tasks/main.yml
index 3ebd011..dd4a664 100644
--- a/roles/my_dotfiles/tasks/main.yml
+++ b/roles/my_dotfiles/tasks/main.yml
@@ -1,10 +1,12 @@
-- name: Pull repositories
+- name: Pull repository
ansible.builtin.git: # noqa: latest
repo: '{{ my_dotfiles_repo }}'
dest: '{{ my_dotfiles_dir }}'
accept_hostkey: true
+ register: repo
- name: Run setup.sh
ansible.builtin.command: ./setup.sh
args:
chdir: '{{ my_dotfiles_dir }}'
+ when: repo.changed