You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/uri/tasks/install-socat-and-test-unix...

26 lines
783 B
YAML

- when: ansible_facts.distribution not in ['MacOSX']
block:
- name: install socat
package:
name: socat
state: present
register: socat_install_package
when: ansible_facts.distribution not in ['Alpine']
- name: install socat for alpine
command: apk add --virtual .socat socat
register: socat_install_alpine
when: ansible_facts.distribution == 'Alpine'
- include_tasks: unix-socket.yml
always:
- name: uninstall socat
package:
name: socat
state: absent
when: socat_install_package|default({}) is changed
- name: uninstall socat for alpine
command: apk del .socat
when: socat_install_alpine|default({}) is changed and 'Installing socat' in socat_install_alpine.stdout