Skip to main content

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.

5 votes
1 answer
2k views

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? ...
yodog's user avatar
  • 229
0 votes
1 answer
90 views

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 ...
Monty_emma's user avatar
2 votes
0 answers
374 views

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 ...
Coupcoup's user avatar
  • 1,086
0 votes
1 answer
8k views

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 ...
MaxiReglisse's user avatar
1 vote
1 answer
396 views

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,...
Jason Stanley's user avatar
1 vote
0 answers
342 views

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-...
Xetius's user avatar
  • 119
2 votes
0 answers
366 views

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,...
xconspirisist's user avatar
4 votes
0 answers
5k views

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 ...
Nathan Jones's user avatar
2 votes
1 answer
1k views

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 ...
Eduardo's user avatar
  • 23
8 votes
1 answer
6k views

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 ...
David Boshton's user avatar
4 votes
0 answers
374 views

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 ...
Michael's user avatar
  • 425
2 votes
0 answers
3k views

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 ...
clicks010's user avatar