Could you use the service module instead of command.
Handler:
- name: centos7 restart auditd
service:
name: audits
state: restarted
become: yes
Also wanted to know how do you run your playbook because you defined as
handler.
On Mon, Feb 17, 2020 at 8:36 AM Bala Mutyam wrote:
Then you will enable ansible plugin on your Jenkins system and connect
theme through ssh-keys with one user create on both systems.
Maybe the link below can help you.
https://www.redhat.com/en/blog/integrating-ansible-jenkins-cicd-process
Thanks
On Tue, Jan 21, 2020 at 5:32 AM Sai Prasha wrote
Hello John,
Update your /etc/yum.conf with bellow. The error is that API fetching is
time out. This is not the best solution but it works form me when I was
facing same problem.
[image: image.png]
On Thu, Nov 21, 2019 at 9:48 AM John James wrote:
> Good Morning,
>
>I am pretty new to Ansib
Le jeudi 26 septembre 2019 16:10:15 UTC-4, Vladimir Botka a écrit :
>
> > > usage:
> > > > inventory.py [-h] [--sshkey SSHKEY] [--commit
> > > > COMMIT] url inventory inventory.py: error: too few arguments
> > >
> > > Extra variables (-e, --extra-vars) are passed to the play not to the
>
Le jeudi 26 septembre 2019 15:03:04 UTC-4, Vladimir Botka a écrit :
>
> On Thu, 26 Sep 2019 09:56:26 -0700 (PDT)
> Bariou Alarou > wrote:
>
> > I'm able to get the list of my hosts from the yml file when running this
> > command
> > $ /opt/ansible/st
Thanks for your response. Where do I have to create the wrapper file? (is
it in ansible.cfg) file.
Le jeudi 26 septembre 2019 15:03:04 UTC-4, Vladimir Botka a écrit :
>
> On Thu, 26 Sep 2019 09:56:26 -0700 (PDT)
> Bariou Alarou > wrote:
>
> > I'm able to get the lis
I'm able to get the list of my hosts from the yml file when running this
command
$ /opt/ansible/static/inventory/inventory.py
https://github.com/adeyeri88/test.git staging.yml
{
"_meta": {
"hostvars": {}
},
"db": {
"children": [
"db-site2",
"d