RE: Re: [ansible-project] Another Ansible Question

2020-03-16 Thread Michael Cooper
Thanks Phil, I appreciate it. -- Michael A CooperLinux Certified / Docker Certifiedhttp://www.coopfire.com From: Phil GriffithsSent: Monday, March 16, 2020 4:19 PMTo: Ansible ProjectSubject: Re: [ansible-project] Another Ansible Question Hi Michael You might want to check out ansible-runner: https://ansible-runner.readthedocs.io/en/latest/container.htmlThere's also something like molecule which is designed for testing roles, and can be used with docker: https://molecule.readthedocs.io/en/latest/index.htmlIf you want to see how the latter works, check out this exercise: https://github.com/pharriso/ansible_workshop/tree/master/exercises/ansible_rhel/molecule RegardsPhil.On Monday, 16 March 2020 12:05:09 UTC, Michael Cooper wrote:Hello Felix, I kind of figured that was going to be the story.It would be nice if there was an easy way to do this, I am tring to get away from the VM route and go with containers. I will have to keep researching. Thanks, On Monday, March 16, 2020 at 6:17:07 AM UTC-4, Felix Fontein wrote:Hi, according to the description on https://hub.docker.com/r/ansible/ansible the Docker image ansible/ansible is "[..] for automated testing of Ansible. They do not include Ansible and are not for end users." So please don't use that image if you want to run Ansible. I'm not sure whether there are pre-built images for running Ansible, especially because the requirements depend a lot on which plugins you are using. You probably need to create your own: base it on some image which includes Python and install Ansible and all requirements via pip. Cheers, Felix PS: please note that not all participants are male on this mailing list. On Mon, 16 Mar 2020 03:02:17 -0700 (PDT) Michael Cooper  wrote: > Hey Guys, > >        I am trying to get ansible working on docker. The image that I > am using is ansible/ansible and there are no instructions for a run > line on it. > > So this is what I tried but it doesn't work. > > docker run -dit --name cfANS --ip xxx.xxx.x.xx --network=CFSNET -p > 22:22 -v /mnt/clusterfs/ansible:/etc/ansible ansible/ansible > > The following is the result of the run line: > a1cd233bf9f2        ansible/ansible:ubuntu1604   "/sbin/init" > 7 seconds ago       Exite                                         d > (1) 4 seconds ago > > Any help with this would be appreciated > Thanks everyone > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/41cf42d9-9a91-4f65-ba13-d7d00ae68bee%40googlegroups.com. 



-- 
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5e70656a.1c69fb81.238a5.8ec5%40mx.google.com.


Re: [ansible-project] Another Ansible Question

2020-03-16 Thread Michael Mullay
I created a docker container to install Ansible for testing different
versions, etc. As folks here have mentioned, it's not really the purpose of
the ansible/ansible image. However, I just run it with a sleep command at
run time, for like 29000 seconds (eight hours) since the container has to
execute something. It's a bit of a hack, but then I have a purpose built
docker container with Ansible.


On Mon, Mar 16, 2020 at 3:02 AM Michael Cooper  wrote:

> Hey Guys,
>
>I am trying to get ansible working on docker. The image that I am
> using is ansible/ansible and there are no instructions for a run line on it.
>
> So this is what I tried but it doesn't work.
>
> docker run -dit --name cfANS --ip xxx.xxx.x.xx --network=CFSNET -p 22:22
> -v /mnt/clusterfs/ansible:/etc/ansible ansible/ansible
>
> The following is the result of the run line:
> a1cd233bf9f2ansible/ansible:ubuntu1604   "/sbin/init"7
> seconds ago   Exite d (1) 4
> seconds ago
>
> Any help with this would be appreciated
> Thanks everyone
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/d00512ba-3084-42b9-89d3-0a67d9b5e23c%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAH4rTPsr%3DXduHvaa%2BGSW%2BWWiP1sYLpQYFazdoN3q0RtX9Fw0vA%40mail.gmail.com.


Re: [ansible-project] Another Ansible Question

2020-03-16 Thread Phil Griffiths
Hi Michael

You might want to check out ansible-runner: 
https://ansible-runner.readthedocs.io/en/latest/container.html
There's also something like molecule which is designed for testing roles, 
and can be used with docker: 
https://molecule.readthedocs.io/en/latest/index.html
If you want to see how the latter works, check out this exercise: 
https://github.com/pharriso/ansible_workshop/tree/master/exercises/ansible_rhel/molecule

Regards
Phil.

On Monday, 16 March 2020 12:05:09 UTC, Michael Cooper wrote:
>
> Hello Felix,
>
> I kind of figured that was going to be the story.
>
> It would be nice if there was an easy way to do this, I am tring to get 
> away from the VM route and go with containers. I will have to keep 
> researching.
>
> Thanks,
>
> On Monday, March 16, 2020 at 6:17:07 AM UTC-4, Felix Fontein wrote:
>>
>> Hi, 
>>
>> according to the description on 
>> https://hub.docker.com/r/ansible/ansible the Docker image 
>> ansible/ansible is "[...] for automated testing of Ansible. They do not 
>> include Ansible and are not for end users." 
>>
>> So please don't use that image if you want to run Ansible. 
>>
>> I'm not sure whether there are pre-built images for running Ansible, 
>> especially because the requirements depend a lot on which plugins you 
>> are using. You probably need to create your own: base it on some image 
>> which includes Python and install Ansible and all requirements via pip. 
>>
>> Cheers, 
>> Felix 
>>
>>
>>
>> PS: please note that not all participants are male on this mailing list. 
>>
>>
>>
>>
>> On Mon, 16 Mar 2020 03:02:17 -0700 (PDT) 
>> Michael Cooper  wrote: 
>>
>> > Hey Guys, 
>> > 
>> >I am trying to get ansible working on docker. The image that I 
>> > am using is ansible/ansible and there are no instructions for a run 
>> > line on it. 
>> > 
>> > So this is what I tried but it doesn't work. 
>> > 
>> > docker run -dit --name cfANS --ip xxx.xxx.x.xx --network=CFSNET -p 
>> > 22:22 -v /mnt/clusterfs/ansible:/etc/ansible ansible/ansible 
>> > 
>> > The following is the result of the run line: 
>> > a1cd233bf9f2ansible/ansible:ubuntu1604   "/sbin/init" 
>> > 7 seconds ago   Exite d 
>> > (1) 4 seconds ago 
>> > 
>> > Any help with this would be appreciated 
>> > Thanks everyone 
>> > 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/41cf42d9-9a91-4f65-ba13-d7d00ae68bee%40googlegroups.com.


Re: [ansible-project] Another Ansible Question

2020-03-16 Thread Michael Cooper
Hello Felix,

I kind of figured that was going to be the story.

It would be nice if there was an easy way to do this, I am tring to get 
away from the VM route and go with containers. I will have to keep 
researching.

Thanks,

On Monday, March 16, 2020 at 6:17:07 AM UTC-4, Felix Fontein wrote:
>
> Hi, 
>
> according to the description on 
> https://hub.docker.com/r/ansible/ansible the Docker image 
> ansible/ansible is "[...] for automated testing of Ansible. They do not 
> include Ansible and are not for end users." 
>
> So please don't use that image if you want to run Ansible. 
>
> I'm not sure whether there are pre-built images for running Ansible, 
> especially because the requirements depend a lot on which plugins you 
> are using. You probably need to create your own: base it on some image 
> which includes Python and install Ansible and all requirements via pip. 
>
> Cheers, 
> Felix 
>
>
>
> PS: please note that not all participants are male on this mailing list. 
>
>
>
>
> On Mon, 16 Mar 2020 03:02:17 -0700 (PDT) 
> Michael Cooper > wrote: 
>
> > Hey Guys, 
> > 
> >I am trying to get ansible working on docker. The image that I 
> > am using is ansible/ansible and there are no instructions for a run 
> > line on it. 
> > 
> > So this is what I tried but it doesn't work. 
> > 
> > docker run -dit --name cfANS --ip xxx.xxx.x.xx --network=CFSNET -p 
> > 22:22 -v /mnt/clusterfs/ansible:/etc/ansible ansible/ansible 
> > 
> > The following is the result of the run line: 
> > a1cd233bf9f2ansible/ansible:ubuntu1604   "/sbin/init" 
> > 7 seconds ago   Exite d 
> > (1) 4 seconds ago 
> > 
> > Any help with this would be appreciated 
> > Thanks everyone 
> > 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7120214d-60dc-4991-b34b-9444344e881f%40googlegroups.com.


Re: [ansible-project] Another Ansible Question

2020-03-16 Thread 'Felix Fontein' via Ansible Project
Hi,

according to the description on
https://hub.docker.com/r/ansible/ansible the Docker image
ansible/ansible is "[...] for automated testing of Ansible. They do not
include Ansible and are not for end users."

So please don't use that image if you want to run Ansible.

I'm not sure whether there are pre-built images for running Ansible,
especially because the requirements depend a lot on which plugins you
are using. You probably need to create your own: base it on some image
which includes Python and install Ansible and all requirements via pip.

Cheers,
Felix



PS: please note that not all participants are male on this mailing list.




On Mon, 16 Mar 2020 03:02:17 -0700 (PDT)
Michael Cooper  wrote:

> Hey Guys,
> 
>I am trying to get ansible working on docker. The image that I
> am using is ansible/ansible and there are no instructions for a run
> line on it.
> 
> So this is what I tried but it doesn't work.
> 
> docker run -dit --name cfANS --ip xxx.xxx.x.xx --network=CFSNET -p
> 22:22 -v /mnt/clusterfs/ansible:/etc/ansible ansible/ansible
> 
> The following is the result of the run line:
> a1cd233bf9f2ansible/ansible:ubuntu1604   "/sbin/init"
> 7 seconds ago   Exite d
> (1) 4 seconds ago
> 
> Any help with this would be appreciated
> Thanks everyone
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20200316111650.761dc21b%40rovaniemi.