Repos with recipes to deploy some infrastructure services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
482 B

  1. ---
  2. - name: Prepare the Molecule Test Resources
  3. hosts: pdns-rec
  4. tasks:
  5. # Install rsyslog to capture the PowerDNS Recursor log messages
  6. # when the service is not managed by systemd
  7. - block:
  8. - name: Install rsyslog
  9. package:
  10. name: rsyslog
  11. state: present
  12. - name: Start rsyslog
  13. service:
  14. name: rsyslog
  15. state: started
  16. when: ansible_facts.service_mgr != 'systemd'