etc-git: Remove deprecated/unsupported "warn" parameter

This commit is contained in:
Ludovic Poujol 2024-02-15 11:28:42 +01:00
parent 70ab0c80de
commit bce501dee0

View file

@ -5,7 +5,6 @@
args:
chdir: "{{ repository_path }}"
creates: "{{ repository_path }}/.git/"
warn: false
register: git_init
tags:
- etc-git
@ -53,7 +52,6 @@
ansible.builtin.command: "git log"
args:
chdir: "{{ repository_path }}"
warn: false
changed_when: false
failed_when: false
register: git_log
@ -65,7 +63,6 @@
ansible.builtin.shell: "git add -A . && git commit -m \"Initial commit via Ansible\""
args:
chdir: "{{ repository_path }}"
warn: false
register: git_commit
when: git_log.rc != 0 or (git_init is defined and git_init is changed)
tags: