mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-24 04:49:26 +00:00
work
This commit is contained in:
parent
93745dd1a4
commit
9cc98053c1
@ -22,6 +22,25 @@
|
|||||||
- pw.sectorq.eu
|
- pw.sectorq.eu
|
||||||
- semaphore.sectorq.eu
|
- semaphore.sectorq.eu
|
||||||
when: inventory_hostname in groups['raspberrypi5']
|
when: inventory_hostname in groups['raspberrypi5']
|
||||||
|
- name: Get relevant configs
|
||||||
|
ansible.builtin.shell: 'egrep -l "# ha.sectorq.eu|# pw.sectorq.eu|# semaphore.sectorq.eu|# sectorq.eu|# gitlab.sectorq.eu|# ha.sectorq.eu" /share/docker_data/nginx/data/nginx/proxy_host/*'
|
||||||
|
ignore_errors: yes
|
||||||
|
become: yes
|
||||||
|
register: result
|
||||||
|
when: inventory_hostname in groups['raspberrypi5']
|
||||||
|
|
||||||
|
- debug:
|
||||||
|
msg: "{{ result.stdout_lines }}"
|
||||||
|
when: inventory_hostname in groups['raspberrypi5']
|
||||||
|
- name: Replace ip
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: "{{ item }}"
|
||||||
|
regexp: '^\s+set \$server\s+\"\w+.\w+.\w+.\w+\";'
|
||||||
|
line: " set $server \"192.168.77.238\";"
|
||||||
|
become: yes
|
||||||
|
with_items:
|
||||||
|
- "{{ result.stdout_lines }}"
|
||||||
|
when: inventory_hostname in groups['raspberrypi5']
|
||||||
|
|
||||||
- include_tasks: reconfigure_heimdall.yaml
|
- include_tasks: reconfigure_heimdall.yaml
|
||||||
name: Reconfigure heimdall
|
name: Reconfigure heimdall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user