Re: [ansible-project] How do i respond to a same response with different input using ansible expect module

2019-07-29 Thread Kai Stian Olstad
On 30.07.2019 01:28, ansi ari wrote: I am able to do with different responses with expect module, but i have same responses multiple times with different prompt. eg: responses: Enter one: "A" Enter next: "B" Enter next: "c" can anyone have a better idea? You use a list responses: E

Re: [ansible-project] Cannot reach newly created Windows VM

2019-07-29 Thread Walter Kessler
What's the best method for a Windows machine to do a callback? PowerShell Run-once? On Mon, Jul 29, 2019 at 4:44 PM Jonathan Lozada De La Matta < jloza...@redhat.com> wrote: > checkout > https://docs.ansible.com/ansible-tower/latest/html/userguide/job_templates.html#provisioning-callbacks > > On

Re: [ansible-project] Re: What would be the checkpoint firewall ansible_network_os

2019-07-29 Thread Tribhuvan Yadav
Hello Ganesh, It does support these modules. I have already tested in my test lab environment. It's just the production where i am getting these error messages and need help. Regards Tribs On Mon, Jul 29, 2019 at 7:33 PM Ganesh Nalawade wrote: > Checkpoint module shipped with ansible/ansible

[ansible-project] How do i respond to a same response with different input using ansible expect module

2019-07-29 Thread ansi ari
I am able to do with different responses with expect module, but i have same responses multiple times with different prompt. eg: responses: Enter one: "A" Enter next: "B" Enter next: "c" can anyone have a better idea? -- You received this message because you are subscribed to the Google

Re: [ansible-project] Ansible Authentication or permission failure

2019-07-29 Thread Richard James Salts
On Tuesday, 30 July 2019 7:19:22 AM AEST kamran taherpour wrote: > Hi, > I'm receiving following error for Ansible ping command > > <10.26.64.67> Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL > 1.0.2k-fips 26 Jan 2017 > > debug1: Reading configuration data /etc/ssh/ssh_config > >

[ansible-project] Re: The destination directory (/sys/module/nvme_core/parameters) is not writable by the current user

2019-07-29 Thread Joe Langdon
Thanks for that feedback. I am in the process of making a module for grub as well. The problem is that I won't be allowed to reboot that many servers without wailing and nashing of teeth :-) I am going to add the temporary solution (io_timeout) and then do the grub entry and allow the reboots to

Re: [ansible-project] Cannot reach newly created Windows VM

2019-07-29 Thread Jonathan Lozada De La Matta
checkout https://docs.ansible.com/ansible-tower/latest/html/userguide/job_templates.html#provisioning-callbacks On Mon, Jul 29, 2019 at 5:07 PM Walter Kessler wrote: > I currently have a Workflow in Tower that does what I want, but it is > doing so via a cumbersome method: > >- First playboo

Re: [ansible-project] The destination directory (/sys/module/nvme_core/parameters) is not writable by the current user

2019-07-29 Thread Sebastian Meyer
Hi Joe, On 29.07.19 22:29, Joe Langdon wrote: > I am using an Ansible Role to copy a template file. It is not allowing me > saying.. "The destination directory (/sys/module/nvme_core/parameters) > is not writable by the current user" > I am not sure how to proceed at this point. I have clos

[ansible-project] Re: The destination directory (/sys/module/nvme_core/parameters) is not writable by the current user

2019-07-29 Thread Joe Langdon
Figured it out. I needed to use the template option "unsafe_writes: yes" On Monday, July 29, 2019 at 4:29:22 PM UTC-4, Joe Langdon wrote: > > Hello, > > I am using an Ansible Role to copy a template file. It is not allowing me > saying.. "The destination directory (/sys/module/nvme_core/pa

[ansible-project] Ansible Authentication or permission failure

2019-07-29 Thread kamran taherpour
Hi, I'm receiving following error for Ansible ping command <10.26.64.67> Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 58: Applying options for * debug1: auto-mux: Tr

[ansible-project] Cannot reach newly created Windows VM

2019-07-29 Thread Walter Kessler
I currently have a Workflow in Tower that does what I want, but it is doing so via a cumbersome method: - First playbook creates a VM - VMware Inventory sync - Run additional playbooks (that may now be targeting already configured Windows VMs) to configure settings and install apps.

[ansible-project] The destination directory (/sys/module/nvme_core/parameters) is not writable by the current user

2019-07-29 Thread Joe Langdon
Hello, I am using an Ansible Role to copy a template file. It is not allowing me saying.. "The destination directory (/sys/module/nvme_core/parameters) is not writable by the current user" *Here is the execution of the play* [root@ip-172-29-100-198 roles]# *ansible-playbook -u root --as

Re: [ansible-project] CPAN Modules

2019-07-29 Thread Keith Mills
Hi Stefan, I figured it out. Thank you for all of your help! On Monday, July 29, 2019 at 10:57:16 AM UTC-5, Keith Mills wrote: > > Do you know how I would use ansible_distribution in myconfig.pm > > --- > - hosts: all > remote_user: root > > tasks: > - name: copy MyConfig.pm to the correct

[ansible-project] Getting vault ID passwords in playbook

2019-07-29 Thread Igor Gnatenko
Hello, I would like to set up one host to run ansible-pull, however since credentials are encrypted with ansible-vault I need some way to deliver those credentials to that host. Is there way to get passed passwords from the playbook? Thanks for help in advance! -- You received this message b

[ansible-project] Re: Am new to Ansible and i need a coach

2019-07-29 Thread Mike Eggleston
Sounds like homework. Mike On Thursday, July 4, 2019 at 9:21:08 AM UTC-5, Chukwu Gabriel wrote: > > Good Afternoon Sir, my name is a Gabriel Chukwu an undergraduate of > Electrical Electronics Engineering. am new to ansible and I have a task I > have been working on, I would like you to be my

[ansible-project] Re: /etc/ntp.conf settings...?

2019-07-29 Thread Mike Eggleston
Figured out how to search. Still, if someone has a playbook already (working with both CentOS and Ubuntu distributions of GNU/Linux). Mike On Monday, July 29, 2019 at 11:47:52 AM UTC-5, Mike Eggleston wrote: > > I haven't figured (yet) how to search the forum if this has been answered > (must h

[ansible-project] /etc/ntp.conf settings...?

2019-07-29 Thread Mike Eggleston
I haven't figured (yet) how to search the forum if this has been answered (must have been; this is a common file). Is there a common playbook or module for setting NTP settings? Mike -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubs

Re: [ansible-project] CPAN Modules

2019-07-29 Thread Keith Mills
Do you know how I would use ansible_distribution in myconfig.pm --- - hosts: all remote_user: root tasks: - name: copy MyConfig.pm to the correct directory on remote host(s) template: src: ../../../library/conf/debian/debian-myconfig.pm dest: /root/.cpan/CPAN/MyConfig.pm -

Re: [ansible-project] Module synchronize in Ansible

2019-07-29 Thread Dick Visser
It clearly says it: rsync: command not found So start by fixing that. Dick On Mon, 29 Jul 2019 at 10:11, Karther wrote: > > Hey guy !! > > I have on problem, i want synchronize two repertory who are in destination > host (source and destination), my task is : > > - name: "Copie de la partie

Re: [ansible-project] Re: What would be the checkpoint firewall ansible_network_os

2019-07-29 Thread Ganesh Nalawade
Checkpoint module shipped with ansible/ansible does not support cli_command/cli_config modules or connection=network_cli Refer the supported checkpoint module here: https://docs.ansible.com/ansible/latest/modules/list_of_network_modules.html#checkpoint On Mon, Jul 29, 2019 at 6:02 PM Tribhuvan Yad

Re: [ansible-project] Re: What would be the checkpoint firewall ansible_network_os

2019-07-29 Thread Tribhuvan Yadav
Hello Ganesh, Below error is coming when using httpapi: TASK [trib_role : SHOW CONFIG] ** fat

[ansible-project] Re: Converting a multi-lines string into a list

2019-07-29 Thread jean-christophe manciot
Using a python string method on an ansible variable: brilliant! -- 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.

Re: [ansible-project] Re: What would be the checkpoint firewall ansible_network_os

2019-07-29 Thread Tribhuvan Yadav
Hello Soniya, Thank you for the reply and all the information but here i am looking specifically for the checkpoint firewall os name which i should mention. ansible_network _os: ? (for checkpoint firewall) Regards Tribs On Mon, Jul 29, 2019 at 5:01 PM Soniya panwar wrote: > > Hello Tribhuva

[ansible-project] Re: What would be the checkpoint firewall ansible_network_os

2019-07-29 Thread Ganesh Nalawade
Try with: ansible_connection=httpapi ansible_network_os=checkpoint On Saturday, 27 July 2019 21:22:09 UTC+5:30, Tribhuvan Yadav wrote: > > any idea what should be the ansible_network_os for checkpoint. I am > getting below error while running my playbook > > TASK [SHOW COMMAND] > **

[ansible-project] Re: What would be the checkpoint firewall ansible_network_os

2019-07-29 Thread Soniya panwar
Hello Tribhuvan Yadav ansible_network_os informs Ansible which Network platform the hosts corresponds to. This is required when using ansible_connection=network_cli. For network_cli connection methods the ansible_network_os variable must be set. This variable informs Ansible which network platfo

[ansible-project] Re: What would be the checkpoint firewall ansible_network_os

2019-07-29 Thread Soniya panwar
Hello Tribhuvan Yadav ansible_network_os informs Ansible which Network platform the hosts corresponds to. This is required when using ansible_connection=network_cli. For network_cli connection methods the ansible_network_os variable must be set. This variable informs Ansible which network pl

[ansible-project] Module synchronize in Ansible

2019-07-29 Thread Karther
Hey guy !! I have on problem, i want synchronize two repertory who are in destination host (source and destination), my task is : - name: "Copie de la partie front-office" synchronize: src: /var/apps/hospitalis-frontoffice/{{ version }}/fo/hospitalisV3Front-{{ version }}-RELEASE/hospita

RE: [ansible-project] Get VMWare Hypervisor Maintenance Mode state

2019-07-29 Thread p.cook...@bham.ac.uk
True, but you could use Check Mode (--check) to do a “dry-run” without actually making any changes though. Can’t help thinking there’s probably a better option, like you, but haven’t got time to look tbh. Regards Phil From: ansible-project@googlegroups.com On Behalf Of phil.cool...@gmail.com