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.htmlroles:
- { 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