Questions tagged [ansible]
Ansible is a model-driven configuration management, multi-node deployment/orchestration and remote task execution system. It uses SSH by default, so there is no special software to be installed on the nodes you manage. Ansible can be extended in any language.
12 questions
5
votes
1
answer
2k
views
Ansible playbook to install Docker Swarm
this is my first ansible playbook.
it installs docker in swarm mode and automatically joins the cluster.
could you guys please review my code and show me where it can be improved?
...
0
votes
1
answer
90
views
Make my ansible play book better
This playbook aims to verify if a specific file exists in a specific directory and, if not, to create it.
Neither the file nor the directory may exist before the verification.
After the process is ...
2
votes
0
answers
374
views
Ansible to automate dev environment setup
This is a follow-up to Bash script to automate dev environment setup.
In that question I'd thrown together a (sloppy) shell script to automatically setup my development environment. One of the answers ...
0
votes
1
answer
8k
views
changing root password with an ansible playbook
It is with great difficulty that I resolved to solve my problem, so I allow myself to submit here the solution.
I wanted a playbook that could replace on all hosts the root password with a string ...
1
vote
1
answer
396
views
Tasks based on variable definition
I am creating a playbook that takes a variable ver at runtime and then runs tasks based on that variable. If that ver is defined,...
1
vote
0
answers
342
views
Ansible scanning Github branches
While setting up my Jenkins instance with Ansible to connect to our local GitHub Enterprise instance, I need to recreate what the Github Branch Plugin does to scan an Organizations projects and pre-...
2
votes
0
answers
366
views
A simple Ansible playbook that powers on a server
This is an ansible playbook that I use for powering on one of my home servers in a rack, that I just turn on when needed. It checks for the switch power, management (bmc) network, powers the server on,...
4
votes
0
answers
5k
views
Clone a GitLab private repo with Ansible
I have an ansible playbook that checks out a GitLab private repository. It utilizes the GitLab Users API to generate an SSH key for the target host and adds it to my GitLab user's SSH keys.
This ...
2
votes
1
answer
1k
views
Ansible playbook to generate webserver folder structure with users and projects
I try to generate with ansible a folder structure for a webserver with users and linked projects.
The playbook works. But with more users and projects it gets quite complex to handle.
How can I ...
8
votes
1
answer
6k
views
Ansible playbook to install application from tarball
I'm doing this, but as I'm the expert here (because no-one else is doing it) I have no real idea how awesome my code actually is.
So the code should do the following:
Export the tarball from ...
4
votes
0
answers
374
views
Test cases for Ansible lambda module for deployment of AWS Lambdas
I have written a set of test cases which cover the ansible lambda module. The entire source is available on GitHub, forked from ansible/ansible
The original file is visible on github as is the ...
2
votes
0
answers
3k
views
Ansible shell command status check
I have a task which checks the status of a process running on a Linux server using a shell. The task should report as failed when the status is NOT RUNNING. The following works but is there a better ...