rigin

Cadet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2020
06:49 AM
- 6,598 Views
Is there anyway in Ansible playbook to start multiple services in a single module / task ?
Is there anyway in Ansible playbook to start multiple services in a single module / task ?
1 Reply
Inano

Cadet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2021
01:29 PM
- 6,555 Views
Hi, Maybe you can made a loop in your task ?
- name: service activation service: name: {{ item }} state: started enabled: yes with_item: - httpd - ssh - ...
Join the discussion
You must log in to join this conversation.