Re: [ansible-project] Modifying CIDR of an existing EC2 Security Groups using Ansible

2021-04-26 Thread Naveen NK
Is there any other options to achieve this ? I have been stuck here since week :( On Monday, April 26, 2021 at 3:29:32 PM UTC+5:30 komalsuth...@gmail.com wrote: > In this ec2_group module i don't think that we can solve this use case > > On Mon, Apr 26, 2021, 11:04 AM Naveen NK wrote: > >>

[ansible-project] New release: ansible-core 2.11.0

2021-04-26 Thread Rick Elrod
Hi all- we're happy to announce that the general release of ansible-core 2.11.0 is now available! -- Some information about ansible-core 2.11: ansible-core 2.11 is a rename of ansible-base. As with ansible-base, it includes only a minimal, vetted set of modules and

[ansible-project] Test Coverage Report When Testing Roles with Molecule

2021-04-26 Thread Cindy
Hello. Is there a way to gather a quantitative data about test coverage for molecule test created for an ansible role? -- 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

[ansible-project] Re: Complete debug output to file

2021-04-26 Thread Dimitri Yioulos
Racke, For my edification, might I ask exactly what your code does? Thanks, Dimitri On Monday, April 26, 2021 at 9:03:19 AM UTC-4 Dimitri Yioulos wrote: > Hello, all. > > It's been a long time since I posted here, so please forgive any posting > faux pas. > > I've created the following

[ansible-project] Re: Complete debug output to file

2021-04-26 Thread Dimitri Yioulos
That worked great; thank you so much! On Monday, April 26, 2021 at 9:03:19 AM UTC-4 Dimitri Yioulos wrote: > Hello, all. > > It's been a long time since I posted here, so please forgive any posting > faux pas. > > I've created the following playboos: > > --- > - name: report aws migrator >

Re: [ansible-project] Re: ansible ssh connections

2021-04-26 Thread Antony Stone
On Monday 26 April 2021 at 16:28:08, NAVEEN wrote: > Hi > Anyone available for job support on ansible ..if any pls email me on > naveenkr...@gmail.com Please do not hijack conversation threads for new topics - start a new thread with an appropriate subject of its own. Thank you, Antony. --

Re: [ansible-project] Complete debug output to file

2021-04-26 Thread Stefan Hornburg (Racke)
On 4/26/21 3:03 PM, Dimitri Yioulos wrote: > Hello, all. > > It's been a long time since I posted here, so please forgive any posting faux > pas. > > I've created the following playboos: > > --- > - name: report aws migrator >   hosts: all >   gather_facts: false >   tasks: >     - name:

Re: [ansible-project] Re: ansible ssh connections

2021-04-26 Thread NAVEEN
Hi Anyone available for job support on ansible ..if any pls email me on naveenkr...@gmail.com Thank you Naveen On Mon, Apr 26, 2021, 16:41 Mauricio Tavares wrote: > How about if you start your own thread instead of breaking into > someone else's? Your question has nothing to do with the OP's >

Re: [ansible-project] Re: Backwards compatible Ansible Collection support in project?

2021-04-26 Thread Erik Godding Boye
Thanks for your feedback! I am not asking for a "migration path to every custom workflow". I just would like to see some support tools to facilitate the migration from a typically legacy Ansible project setup, to the modern collection layout - which I think provides far better organization and

[ansible-project] Complete debug output to file

2021-04-26 Thread Dimitri Yioulos
Hello, all. It's been a long time since I posted here, so please forgive any posting faux pas. I've created the following playboos: --- - name: report aws migrator hosts: all gather_facts: false tasks: - name: collect facts shell: cmd: facter -p fqdn processorcount

Re: [ansible-project] docker installation problems

2021-04-26 Thread rebecca acheampong
Thank you very much...taking a look at it On Mon, Apr 26, 2021 at 2:39 PM Mauricio Tavares wrote: > On Mon, Apr 26, 2021 at 7:07 AM rebecca acheampong > wrote: > > > > > > I wish i could separate them as you have told me but i am very new to > ansible and I am using it for my final project. I

Re: [ansible-project] docker installation problems

2021-04-26 Thread rebecca acheampong
Thank you so much. I am looking at it On Mon, Apr 26, 2021 at 2:45 PM Nuno Jordão wrote: > A playbook is a list of plays. Example: > > --- > - name: play1 > hosts: host1 > tasks: > - name: >etc... > > - name: play2 > hosts: host2 > tasks: > - name: > > On Mon, Apr 26,

Re: [ansible-project] docker installation problems

2021-04-26 Thread Nuno Jordão
A playbook is a list of plays. Example: --- - name: play1 hosts: host1 tasks: - name: etc... - name: play2 hosts: host2 tasks: - name: On Mon, Apr 26, 2021 at 12:08 PM rebecca acheampong wrote: > > I wish i could separate them as you have told me but i am very new to >

Re: [ansible-project] docker installation problems

2021-04-26 Thread Mauricio Tavares
On Mon, Apr 26, 2021 at 7:07 AM rebecca acheampong wrote: > > > I wish i could separate them as you have told me but i am very new to ansible > and I am using it for my final project. I dont know how to do that. I changed > the host to the target node's name. I think you are right because the

Re: [ansible-project] Re: ansible ssh connections

2021-04-26 Thread Mauricio Tavares
On Fri, Apr 23, 2021 at 12:24 PM rebecca acheampong wrote: > > Thank you. Trying the options. I have sat on it the whole day, i feel > exhausted with it. > Thank you. I will get back whatever results i have > Some suggestions, assuming the name of the host you want to run ansible on is

Re: [ansible-project] Re: ansible ssh connections

2021-04-26 Thread Mauricio Tavares
How about if you start your own thread instead of breaking into someone else's? Your question has nothing to do with the OP's On Mon, Apr 26, 2021 at 6:00 AM Naveen Konduru wrote: > > do u have any sample code ...if u have pls share with me > > On Monday, April 26, 2021 at 3:28:21 PM UTC+5:30

Re: [ansible-project] docker installation problems

2021-04-26 Thread rebecca acheampong
I wish i could separate them as you have told me but i am very new to ansible and I am using it for my final project. I dont know how to do that. I changed the host to the target node's name. I think you are right because the localhost does the installation of the docker on the control node.

Re: [ansible-project] docker installation problems

2021-04-26 Thread rebecca acheampong
I added become_user: true become_user_pass: true I got the same error without the pass, but when i add the pass, i get this: ERROR! 'become_user_pass' is not a valid attribute for a Play On Monday, April 26, 2021 at 1:45:48 PM UTC+3 ng.duct...@gmail.com wrote: > Sorry, it should

Re: [ansible-project] Facing issues with ssh connection as user root

2021-04-26 Thread Hasini P
I am not executing playbook with sudo. Running it with my userID. Do you want me to paste - verbose output for more details here ? (I am using -K option with playbook and providing my password) On Monday, 26 April 2021 at 16:11:30 UTC+5:30 ng.duct...@gmail.com wrote: > Did you execute

Re: [ansible-project] docker installation problems

2021-04-26 Thread Dick Visser
You're using localhost as the target, which is OK for the vmware module (as that is an API based one), but then you also target localhost for the docker stuff. Split your deployment into separate playbook and make sure you're targeting the correct host. This may involve add_host etc. On Mon, 26

Re: [ansible-project] docker installation problems

2021-04-26 Thread Thanh Nguyen Duc
Sorry, it should be become: true By default it will elevate the account to root. You may need to pass become_user_pass as well. Sent from my iPhone > On 26 Apr 2021, at 18:30, rebecca acheampong wrote: > > I just added become_user: root but the same problem > >> On Monday, April 26, 2021 at

Re: [ansible-project] Facing issues with ssh connection as user root

2021-04-26 Thread Thanh Nguyen Duc
Did you execute your playbook with sudo? If with sudo then you may need to ssh copy key again for root account to target machine. And Can try to add - then post the result? Sent from my iPhone > On 26 Apr 2021, at 18:37, Hasini P wrote: > >  > yes, I am able to ping-pong with my

Re: [ansible-project] Facing issues with ssh connection as user root

2021-04-26 Thread Hasini P
yes, I am able to ping-pong with my userID.. ssh password-less connectivity was established from control server to remote server with my ID On Monday, 26 April 2021 at 16:05:34 UTC+5:30 ng.duct...@gmail.com wrote: > Sorry, first of all, are you able to ping your server by ansible > yourserver

Re: [ansible-project] Facing issues with ssh connection as user root

2021-04-26 Thread Thanh Nguyen Duc
Sorry, first of all, are you able to ping your server by ansible yourserver -m ping? Have you done to transfer your public key to client? Sent from my iPhone > On 26 Apr 2021, at 18:32, Hasini P wrote: > > Thanks, I tried different possibilities including your suggestion as below., > but it

Re: [ansible-project] Facing issues with ssh connection as user root

2021-04-26 Thread Hasini P
Thanks, I tried different possibilities including your suggestion as below., but it didnt work --- - name: test hosts: all tasks: - name: sample shell task to check the userID shell: echo `whoami` become: yes On Monday, 26 April 2021 at 15:59:20 UTC+5:30 ng.duct...@gmail.com

Re: [ansible-project] Facing issues with ssh connection as user root

2021-04-26 Thread Thanh Nguyen Duc
Sorry, just become: true may solve, by default it always become root already Sent from my iPhone > On 26 Apr 2021, at 18:29, Thanh Nguyen Duc wrote: > > I think just become_user: yes may solve your issue. > > Sent from my iPhone > >>> On 26 Apr 2021, at 18:26, Hasini P wrote: >>> >>  >>

Re: [ansible-project] docker installation problems

2021-04-26 Thread rebecca acheampong
I just added become_user: root but the same problem On Monday, April 26, 2021 at 1:27:33 PM UTC+3 ng.duct...@gmail.com wrote: > Look like you need to add become_user option there > > Sent from my iPhone > > On 26 Apr 2021, at 18:21, rebecca acheampong wrote: > > I am using ansible to install a

Re: [ansible-project] Facing issues with ssh connection as user root

2021-04-26 Thread Thanh Nguyen Duc
I think just become_user: yes may solve your issue. Sent from my iPhone > On 26 Apr 2021, at 18:26, Hasini P wrote: > >  > Team, Can someone sort this out please.. We are using 2.8.18 version of > ansible on our control node. > I am facing error when trying to perform ping-pong with

Re: [ansible-project] docker installation problems

2021-04-26 Thread Thanh Nguyen Duc
Look like you need to add become_user option there Sent from my iPhone > On 26 Apr 2021, at 18:21, rebecca acheampong wrote: > > I am using ansible to install a docker but I get this error. How can i solve > this please? > Please help me, this installation has taken me a whole week > >

[ansible-project] Facing issues with ssh connection as user root

2021-04-26 Thread Hasini P
Team, Can someone sort this out please.. We are using 2.8.18 version of ansible on our control node. I am facing error when trying to perform ping-pong with ansible as become_user root (as pasted below). On the remote server, the user is having access to run sudo commands and user can become

[ansible-project] docker installation problems

2021-04-26 Thread rebecca acheampong
I am using ansible to install a docker but I get this error. How can i solve this please? Please help me, this installation has taken me a whole week Control node is ubuntu server 20.04 Target node is ubuntu desktop 18.04 on vmware esxi this is my playbook: --- - name: installing docker on

Re: [ansible-project] Re: ansible ssh connections

2021-04-26 Thread Komal Suthar
template: src : file.txt Inside this file.txt.. The default IPv4 address of {{ ansible_facts.fqdn }} is {{ ansible_facts.default_ipv4.address }} dest : file.csv Some facts example there are lots of facts related to that server you have to fetch or serch in docs On Mon, Apr 26, 2021,

Re: [ansible-project] Re: ansible ssh connections

2021-04-26 Thread Naveen Konduru
do u have any sample code ...if u have pls share with me On Monday, April 26, 2021 at 3:28:21 PM UTC+5:30 komalsuth...@gmail.com wrote: > You can use jinja templates for getting the facts of the server and use > template modules for creating your file. > > On Mon, Apr 26, 2021, 2:54 PM

Re: [ansible-project] Modifying CIDR of an existing EC2 Security Groups using Ansible

2021-04-26 Thread Komal Suthar
In this ec2_group module i don't think that we can solve this use case On Mon, Apr 26, 2021, 11:04 AM Naveen NK wrote: > Can we modify existing EC2 Security group using Ansible by accepting new > input parameter through jenkins job? > > Scenario - I have to update users public IP to Ec2

Re: [ansible-project] Re: ansible ssh connections

2021-04-26 Thread Komal Suthar
You can use jinja templates for getting the facts of the server and use template modules for creating your file. On Mon, Apr 26, 2021, 2:54 PM Naveen Konduru wrote: > Hello Team , > I have oen requirement on Ansible with Hp ILO server.. > > I am new to ansible.Need help from you people. >

[ansible-project] Re: ansible ssh connections

2021-04-26 Thread Naveen Konduru
Hello Team , I have oen requirement on Ansible with Hp ILO server.. I am new to ansible.Need help from you people. Requirement is Have to connect Hp ilo serverr using SSH and get SWId's details and the out out i have to display in csv file.. can any implementation pls do let me know.