Comments (1)
Yes. You probably know of some of the limitations (or, expected behavior) of tags
for ansible. When you include a role in a playbook and assign the tags value, the tags get applied throughout the included role.
This is in contrast with a different expected operation: create a playbook to include a role that runs only a specific set of tags.
Essentially, I would want to use a set of 'outer' playbooks that call specific roles in specific ways to run specific tasks in the roles. So in my implementation of other of my roles, I have playbooks that list out specific flags that I want to use for the playbook. It's a way for me to run a specific playbook without remember the exact flags needed, or to call in other playbooks, passing the flags down from the cli.
For example: pgkehle.ssl-certs
Playbooks:
- name: Create CSR
hosts: all
remote_user: root
gather_facts: ansible_host != 'localhost'
vars:
ca_name: "incommon"
roles:
# look for the best .pem file to use, personal or group
- { role: pgkehle.common, tags: ['always'] }
# prepare `sc_common_name`, `sc_domain_comp`, etc
- { role: ../roles/cert_defs }
# Create the CSR
- { role: pgkehle.ssl-certs, flags: ['csr_create'] }
- name: Pull the CSR
hosts: all
remote_user: root
gather_facts: ansible_host != 'localhost'
vars:
ca_name: "incommon"
roles:
- { role: pgkehle.common, tags: ['always'] }
- { role: ../roles/cert_defs }
- { role: pgkehle.ssl-certs, flags: ['csr_pull'] }
If you know of other ways to do this, please let me know! 😄
from ansible-oracle-client.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-oracle-client.