Most Popular
1500 questions
5
votes
1 answer
Github commit message when deploying to aws beanstalk in Jenkins
As part of our CI setup I am using AWS Beanstalk
deployment plugin to deploy my application through Jenkins.
The issue is I am getting git commit hash in beanstalk
application versions description.
I want to have the commit message instead.
I was…
Amits
- 151
- 1
5
votes
2 answers
Ansible communication medium
I am a little confused as to what is the protocol that Ansible uses for communication between Controller node and Managed Remote nodes.
I believed that it was "SSH" protocol.
However, the official documentation mentions this
"On the managed nodes,…
Gaurav Parashar
- 187
- 1
- 4
5
votes
3 answers
How to connect to a docker container?
I have the following Dockerfile:
FROM ubuntu:latest
MAINTAINER Valter Silva
RUN apt-get update
RUN apt-get install -y apache2
ADD index.html /var/www/html/
CMD /usr/sbin/apache2ctl -D FOREGROUND
EXPOSE 22
EXPOSE 80
This is how I build my…
Valter Silva
- 209
- 1
- 2
- 6
5
votes
4 answers
How to install Certbot via Ansible playbook?
This is how I install Certbot in a Bash script:
apt-get update -y && add-apt-repository ppa:certbot/certbot -y && apt-get update -y
apt-get upgrade nginx python-certbot-nginx -y
That's the playbook syntax I found to install Nginx in default…
Arcticooling
- 1
- 1
- 6
5
votes
1 answer
Creating ansible host_vars and group_vars files dynamically
Is it possible to populate host_vars and group_vars with results from a database like we do in dynamic inventories?
Actually I'm doing it inside my playbook either with lookups, either by using shell module and registering queries result.
If anyone…
storm
- 1,759
- 3
- 15
- 34
5
votes
1 answer
Ensure a line is uncommented in an XML file using ansible
How can I use ansible to ensure that a line is uncommented in an XML file? In /etc/tomcat8/context.xml I want to ensure that the section: