1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-22 13:51:39 +01:00

ansible: add dotfiles-update tag

This commit is contained in:
bretello 2024-07-04 19:10:47 +02:00
parent 2b2954d31a
commit eb97bec778
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -23,10 +23,14 @@
clone: true clone: true
update: false update: false
register: git_clone_result register: git_clone_result
tags:
- dotfiles-update
- debug: - debug:
var: git_clone_result['after'] var: git_clone_result['after']
when: git_clone_result['before'] == "null" when: git_clone_result['before'] == "null"
tags:
- dotfiles-update
- name: Update dotfiles repo - name: Update dotfiles repo
git: git:
@ -36,6 +40,8 @@
update: false update: false
when: git_clone_result['before'] != "null" when: git_clone_result['before'] != "null"
register: git_update_result register: git_update_result
tags:
- dotfiles-update
- debug: - debug:
var: git_update_result['after'] var: git_update_result['after']
@ -121,6 +127,8 @@
- DOTFILES: "{{ dotfiles_path }}" - DOTFILES: "{{ dotfiles_path }}"
args: args:
creates: .vim/vim-plug creates: .vim/vim-plug
tags:
- dotfiles-update
- name: Get git config facts - name: Get git config facts
community.general.git_config: community.general.git_config: