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.

Filter by
Sorted by
Tagged with
0 votes
0 answers

Ansible role for installing and configuring SSH service

This is the Ansible role that installs and configures SSH service. What do you think about it? Is there something to improve? Thanks defaults/main.yml ...
whiteman808's user avatar
4 votes
1 answer

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? ...
RASG's user avatar
  • 219
0 votes
1 answer

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

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

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

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,...
Jason Stanley's user avatar
2 votes
0 answers

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

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

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

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

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

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

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