Debian Codegraph @

test/integration/targets/uri/tasks/install-socat-and-test-unix-socket.yml

raw
1 - when: ansible_facts.distribution not in ['MacOSX']
2 block:
3 - name: install socat
4 package:
5 name: socat
6 state: present
7 register: socat_install_package
8 when: ansible_facts.distribution not in ['Alpine']
9
10 - name: install socat for alpine
11 command: apk add --virtual .socat socat
12 register: socat_install_alpine
13 when: ansible_facts.distribution == 'Alpine'
14
15 - include_tasks: unix-socket.yml
16 always:
17 - name: uninstall socat
18 package:
19 name: socat
20 state: absent
21 when: socat_install_package|default({}) is changed
22
23 - name: uninstall socat for alpine
24 command: apk del .socat
25 when: socat_install_alpine|default({}) is changed and 'Installing socat' in socat_install_alpine.stdout