playbook | Company playbook containing internal information | Frontend Framework library
kandi X-RAY | playbook Summary
kandi X-RAY | playbook Summary
Company playbook containing internal information about common questions & situations at De Voorhoede in the form of a website generated with Vuepress and fetched Dropbox Paper documents.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of playbook
playbook Key Features
playbook Examples and Code Snippets
Community Discussions
Trending Discussions on playbook
QUESTION
I'm running boto with python3 and I'm running an ansible playbook to setup some ec2 instances.
Everything is fine, creating instances, security groups, key pairs, everything in eu-west-2
.
When the task for Elastic IPs runs it fails with this message:
Region eu-west-2 does not seem to be available for aws module boto.ec2. If the region definitely exists, you may need to upgrade boto or extend with endpoints_path
I'm running ansible with -e ansible_python_interpreter="/usr/bin/python3"
.
I have latest boto installed.
ANSWER
Answered 2021-Mar-03 at 11:06I resorted to using the community module for elastic ip.
So community.aws.ec2_eip
instead of ec2_eip
.
QUESTION
I'm using ec2_instance_info
module in Ansible to get EC2 instance information including tags and save it in CSV file. But some EC2 instances do not have backup
tag so the play eventually stopped with error.
How to handle the error so when there is no tag assigned, Ansible should write NULL
in the the CSV file.
Below is the Ansible playbook:
...ANSWER
Answered 2021-Jun-10 at 09:48try below code:
QUESTION
I have this result from a Ansible playbook
...ANSWER
Answered 2021-Jun-11 at 15:38Use join('\n')
to join the elements of the list into desired string. Check out the output of 2nd debug
.
QUESTION
I have a role "totaldebug.users" which creates user accounts. for my playbook I have the following:
...ANSWER
Answered 2021-Jun-10 at 14:38Variables returned from inventory group_vars do not depend on the group you are targeting, only on the precedence rules (which can be somewhat tuned)
From the first link above, I suggest you make yours the advice:
Teams and projects that agree on guidelines for defining variables (where to define certain types of variables) usually avoid variable precedence concerns. We suggest that you define each variable in one place: figure out where to define a variable, and keep it simple. For examples, see Tips on where to set variables.
Here is an example of how I would solve your current problem. I would first state (only an example, you can adapt):
- Default list of users is defined in group
all
- Full list of users is calculated in group
all
- Other groups can define an additional list of users.
- A machine can only be part of one group defining additional users.
From there:
- in group_vars/all.ylm
QUESTION
I'm trying to do a dry-run of a small test script I've put together for ansible
but I am getting an error.
The script is this:
...ANSWER
Answered 2021-Jun-10 at 07:24Using the command ansible-galaxy collection install community.general
did not work for me, as it did not allow me to use the various modules.
What worked for me was to install the ansible-collection-community-general
from the official repos.
QUESTION
I have an ansible playbook that gets its vars passed in from an extra-vars.json file. It gets passed in at the command line with --extra-vars "@extra-vars.json"
.
This is an abbreviated version of the var file
ANSWER
Answered 2021-Jun-09 at 13:30When passing extra vars, these are always "string variables". I learned it the hard way when trying to pass in boolean variables.
You could pass them as json:
QUESTION
I am using Ansible to setup multiple test server environments (which are basically copies of same Git repository into test1-test55 different test folders).
Now, I'm able to create these folders recursively using the file module/package as follows
...ANSWER
Answered 2021-Jun-08 at 14:10You should be able to use with_sequence
like you used it to create the directories.
I've set up three folders, with the names test1
, test2
, test3
and used a task below to clone the repository into all of them. This worked fine.
QUESTION
The Script, running on a Linux host, should call some Windows hosts holding Oracle Databases. Each Oracle Database is in DNS with its name "db-[ORACLE_SID]".
Lets say you have a database with ORACLE SID TEST02
, it can be resolved as db-TEST02
.
The complete script is doing some more stuff, but this example is sufficient to explain the problem.
The db-[SID]
hostnames must be added as dynamic hosts to be able to parallelize the processing.
The problem is that oracle_databases is not passed to the new playbook. It works if I change the hosts from windows
to localhost
, but I need to analyze something first and get some data from the windows hosts, so this is not an option.
Here is the script:
...ANSWER
Answered 2021-May-28 at 21:35It might be possible that Ansible is not parsing the updated inventory file file, or the hosts name is being malformed in as it updates the inventory.
In this scenario, you can use the -vv or -vvvv parameter in your Ansible command to get extra logging.
This will give you a complete picture into what Ansible is actually doing as it tries to parse hosts.
QUESTION
Im trying to get the clustername, datastore cluster, port groups, and some other facts from vcenter using ansible. I've read the docs here but the data Im getting in return is almost too much and needs to be filtered. Here's an example of the clustername playbook. It works, but Im looking to get just the name of the cluster. Im outputting it to a yaml file so I can import it into a pipeline later. Here's the code.
...ANSWER
Answered 2021-Jun-07 at 17:48You can use the keys
method from the dictionary
class to return a dictionary view object with the clusters, which you can then convert into a list with the list
filter function:
QUESTION
I would like to run a playbook from a shell script with variable options.
When I have double quotes around ${ansible_opts}
, running the playbook fails and I get the following error.
What is the problem?
ANSWER
Answered 2021-Jun-07 at 12:40For something this simple, it is probably sufficient to simply let the shell do word splitting by removing the double quotes:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install playbook
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page