LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ansible will not execute whole playbook (https://www.linuxquestions.org/questions/linux-server-73/ansible-will-not-execute-whole-playbook-4175594054/)

DimTheo 11-22-2016 02:04 PM

ansible will not execute whole playbook
 
Hello
can someone help with this ? Below is my playbook but when i execute it , ansible only loads the first group called [web] and it completely ignores the rest of the file with no errors etc . Am i doing something wrong?

Code:

- hosts: web
  remote_user: root
  vars:
    firewall_allowed_tcp_ports:
      - "80"
      - "22"
  roles:
    - opspluslove.firewall 
     
- hosts: test
  remote_user: root
  vars:
    firewall_allowed_tcp_ports:
      - "22"
      - "80"   
  roles:
    - opspluslove.firewall

    - hosts: https
  remote_user: root
  vars:
    firewall_allowed_tcp_ports:
      - "443" 
      - "22"
  roles:
    - opspluslove.firewall


sag47 11-23-2016 11:59 PM

What is an example of your inventory file (feel free to anonymize it)? What is the exact ansible command you're running?


All times are GMT -5. The time now is 01:14 AM.