mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 07:31:23 -07:00
Initial commit
This commit is contained in:
commit
aebc1b03fd
4861 changed files with 812621 additions and 0 deletions
3
tests/integration/targets/setup_mosquitto/tasks/main.yml
Normal file
3
tests/integration/targets/setup_mosquitto/tasks/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- include: ubuntu.yml
|
||||
when: ansible_distribution == 'Ubuntu'
|
24
tests/integration/targets/setup_mosquitto/tasks/ubuntu.yml
Normal file
24
tests/integration/targets/setup_mosquitto/tasks/ubuntu.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
- name: Install https transport for apt
|
||||
apt:
|
||||
name: apt-transport-https
|
||||
state: latest
|
||||
force: yes
|
||||
|
||||
- name: Install Mosquitto Server
|
||||
apt:
|
||||
name: mosquitto
|
||||
state: latest
|
||||
register: result
|
||||
until: result is success
|
||||
delay: 3
|
||||
retries: 10
|
||||
|
||||
- name: Ensure TLS config
|
||||
copy:
|
||||
src: mosquitto.conf
|
||||
dest: /etc/mosquitto/mosquitto.conf
|
||||
|
||||
- name: Start Mosquitto service
|
||||
service:
|
||||
name: mosquitto
|
||||
state: restarted
|
Loading…
Add table
Add a link
Reference in a new issue