Ansible-lint compliance for roles/bashrc
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Ansible-lint compliance for roles/etc_hosts
This commit is contained in:
@ -1,16 +1,16 @@
|
||||
---
|
||||
- name: Set etc_hosts_file if running in Docker
|
||||
- name: Set etc_hosts_etc_hosts_file if running in Docker
|
||||
set_fact:
|
||||
__etc_hosts_file: "{{ __etc_hosts_file }}.docker"
|
||||
etc_hosts_etc_hosts_file: "{{ etc_hosts_etc_hosts_file }}.docker"
|
||||
when:
|
||||
- ansible_virtualization_type | regex_search("docker|podman|container")
|
||||
|
||||
|
||||
- name: Deploy {{ __etc_hosts_file }}
|
||||
- name: Deploy {{ etc_hosts_etc_hosts_file }}
|
||||
template:
|
||||
src: templates/etc_hosts.j2
|
||||
dest: "{{ __etc_hosts_file }}"
|
||||
mode: 0644
|
||||
dest: "{{ etc_hosts_etc_hosts_file }}"
|
||||
mode: "0644"
|
||||
|
||||
|
||||
...
|
||||
|
Reference in New Issue
Block a user