Just switch to with_first_found.
This commit is contained in:
parent
3c02ad10f5
commit
bff8babaeb
1 changed files with 4 additions and 4 deletions
|
@ -430,10 +430,10 @@
|
|||
- config
|
||||
|
||||
- name: template sshd_config
|
||||
action: copy src="{{ item }}" dest=/etc/ssh/sshd_config mode=0600 owner=root group=root
|
||||
first_available_file:
|
||||
- "/srv/web/infra/ansible/files/jenkins/sshd_config_slave.{{ ansible_distribution }}"
|
||||
- /srv/web/infra/ansible/files/jenkins/sshd_config_slave
|
||||
copy: src="{{ item }}" dest=/etc/ssh/sshd_config mode=0600 owner=root group=root
|
||||
with_first_found:
|
||||
- "{{ files }}/jenkins/sshd_config_slave.{{ ansible_distribution }}"
|
||||
- "{{ files }}/jenkins/sshd_config_slave"
|
||||
notify:
|
||||
- restart sshd
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue