LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-22-2016, 02:04 PM   #1
DimTheo
LQ Newbie
 
Registered: Nov 2016
Posts: 20

Rep: Reputation: Disabled
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
 
Old 11-23-2016, 11:59 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: U.S. Digital Services and Playbook: LXer Syndicated Linux News 0 08-20-2014 09:31 PM
Vagrant+Ansible playbooks. How to use same playbook on non vagrant provision markotitel Linux - Virtualization and Cloud 1 12-06-2013 09:00 AM
Strongswan & Playbook issues. zinv Linux - Networking 0 04-12-2012 12:01 PM
Playbook from R.I.M. -- with QNX mjolnir General 0 09-28-2010 06:53 AM
LXer: The patent infringement suit: A playbook LXer Syndicated Linux News 0 10-18-2007 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration