diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-09-01 02:07:12 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-09-01 02:07:12 +0200 |
commit | b70370b2a2da59e0a1645e174ba490878bc8cf70 (patch) | |
tree | b84c3c40d840f1310a998f0c725fda341d1cc54a /roles | |
parent | firewall: using the validate arg for testing the config (diff) | |
download | infra-ansible-b70370b2a2da59e0a1645e174ba490878bc8cf70.tar.gz infra-ansible-b70370b2a2da59e0a1645e174ba490878bc8cf70.zip |
my_dotfiles: run setup.sh on updates only
Diffstat (limited to 'roles')
-rw-r--r-- | roles/my_dotfiles/tasks/main.yml | 4 |
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 |