Trying to run an example from the ansible docs, and it seems to always run 
both the tagged portions of the playbook...

Am I missing how calling a role with tags is supposed to be used?

Ansible docs - 

http://docs.ansible.com/ansible/latest/playbooks_tags.html

roles:
  - { role: webserver, port: 5000, tags: [ 'web', 'foo' ] }

My playbook and role call below ->


Role call


---
- hosts: 10.10.0.5
  become: yes
  roles:
    - {role: apache, tags: [ 'config_apache']}

tasks/main.yml

- name: Install apache
  yum:
   name: httpd
   state: latest
  tags: apache_install

- name: Config apache
  lineinfile:
    path: /etc/httpd/conf/httpd.conf
    line: penguin
  tags: config_apache


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0476ea06-962c-4a40-8d9f-9476e376349f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to