Re: [ansible-project] Playbook ignores attributes auth_pass\authorize and wont enter privilege mode.

2018-03-22 Thread igor
Yes, i guess i will need to read on that as well... I've tried so many different options and still not getting this playbook to work. All i need is this playbook to ssh to switch, enter enable mode - run "show run" command and save running config on local server, sounds easy and doable but

Re: [ansible-project] 'netconf_config' is not a valid attribute for a Play

2018-03-22 Thread Armstrong Soo
Thanks all. If I understand the Playbook Intro correctly, I changed the playbook to x@ansi0003vm001:~/FSL$ cat -T main.yaml --- - name: Add Netconf User netconf_config: host: 192.168.0.100 username: root password: hellothere xml: |

[ansible-project] Re: Ansible remote installation of SQL server 2016.

2018-03-22 Thread Jordan Borean
Unfortunately Windows has all these issues when it comes to credentials not being able to to the WinRM session where the major ones are; * Being able to access a network share with the current users' credentials * Being able to access DPAPI * Being able to access the Windows Update API * Some

[ansible-project] did anyone use vmware_guest option customvals ?

2018-03-22 Thread talha jilal
Hello Folks , Did anyone use customvalues options with vmware_guest module ? 1- My concern what is the purpose of this option ? 2- And why people use this option vmware_guest module ? 3- Does this option help to modify vmx file values? Thanks -- You received this message because you are

[ansible-project] Re: ( vmware-guest module) Creating VM from template and adding "No of cores per socket"

2018-03-22 Thread talha jilal
Thanks, I think this option only work with ansible-2.5 you are right. On Thursday, 22 March 2018 17:38:33 UTC-4, Nick Rogers wrote: > > Well, I'll be honest, I don't have a place to run 2.5 currently, so > someone else may have to chime in. I saw that config in the source on > GitHub. > >

[ansible-project] Re: Ansible remote installation of SQL server 2016.

2018-03-22 Thread 12177589
Ok, thank you very much! Many of the previous failures of the Windows credentials , can be solved with CredSSP? Windows does have a lot of limitations, and it will be much easier to deploy on Linux later. 在 2018年3月22日星期四 UTC+8下午7:09:30,Jordan Borean写道: > > Installing SQL server requires access

[ansible-project] Is there an ansible module to make changes to the Local Group Policy editor (gpedit.msc) on windows?

2018-03-22 Thread Tony Chia
I see something similar called the "win_security_policy" but I couldn't follow the example in the documentation. For example, if i want to add an user called svc_foounder the following Computer Configure => Windows Settings => Security Settings => Local Policies => User Rights Assignment =>

[ansible-project] Re: ( vmware-guest module) Creating VM from template and adding "No of cores per socket"

2018-03-22 Thread Nick Rogers
Well, I'll be honest, I don't have a place to run 2.5 currently, so someone else may have to chime in. I saw that config in the source on GitHub. I also create many VMs from templates currently with 2.4, from a base template configured with 1 CPU that is deployed to targets with multiple CPUs,

Re: [ansible-project] 'netconf_config' is not a valid attribute for a Play

2018-03-22 Thread Brian Coca
Most module examples are 'specific tasks', they are supposed to be in the context of a play and playbook. If you are unclear on what that is, i suggest starting at http://docs.ansible.com/ansible/latest/intro.html -- -- Brian Coca -- You received this message because you are

[ansible-project] Re: ( vmware-guest module) Creating VM from template and adding "No of cores per socket"

2018-03-22 Thread talha jilal
Yes I also tried this option but it does not impact my number of sockets. Thank you for your reply , Appreciate your response. ( Note I am creating vms from templates ) . Any suggestion ? Output from ( hardware: memory_mb: "{{ ram_size }}" num_cpus: "{{ cpu_nums }}"

Re: [ansible-project] 'netconf_config' is not a valid attribute for a Play

2018-03-22 Thread Armstrong Soo
I thought I am following the example of http://docs.ansible.com/ansible/latest/netconf_config_module.html. On Thu, Mar 22, 2018 at 3:32 PM, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On Thursday, 22 March 2018 20.22.02 CET Armstrong Soo wrote: > > Hi all, I am testing a very

[ansible-project] Re: ( vmware-guest module) Creating VM from template and adding "No of cores per socket"

2018-03-22 Thread Nick Rogers
Looks like in 2.5 you specify 'num_cpu_cores_per_socket' in the vmware_guest 'hardware' dictionary. - name: Create VM vmware_guest: hostname: somevmwareesxhost ... other vmware_guest config ... hardware: num_cpus: 4 num_cpu_cores_per_socket: 8 ... other hardware

Re: [ansible-project] method for deleting ip sla config lines at different routers

2018-03-22 Thread Kai Stian Olstad
On 20.03.2018 02:29, aegiacome...@hotmail.com wrote: Hi guys, i 've been tasked for deletion of "ip sla x" lines at several routers. I have created this playbook, that works fine with all routers, except the ones which do not have "ip sla x" configured. This is the playbook: --- - name: IOS

Re: [ansible-project] Pass output variable of one role as an input to another role

2018-03-22 Thread Kai Stian Olstad
On 20.03.2018 16:41, Ukesh Kumar Vasudevan wrote: I am having the below ansible script. While executing the script, I am getting error in the role 'install-packages'. The error is, "msg": "The task includes an option with an undefined variable. The error was: {{ ip }}: 'ip' is undefined.

Re: [ansible-project] debug output for task

2018-03-22 Thread Kai Stian Olstad
On 20.03.2018 18:25, Cyberbob wrote: Hi team, i have this playbook: --- - hosts: "{{ leaf_name }}" gather_facts: no connection: local vars_prompt: - name: "leaf_name" prompt: "Enter switch hostname/ip" private: no - name: "vlan_id" prompt: "Enter access vlan for L2

[ansible-project] ( vmware-guest module) Creating VM from template and adding "No of cores per socket"

2018-03-22 Thread talha jilal
Hello, I am deploying vms with vmware_guest module, and I need to edit "number of cores per socket" what statement should I use ? I tried the following statement but it always give me error. customvalues: - key: cpuid.coresPerSocket value: 2 Error : fatal: [kuber-n-03

[ansible-project] Ansible Tower setup takes up to half hour

2018-03-22 Thread Santhosh Thumma
Hello Guys, I'm trying to install ansible tower on one of my nodes and it takes very long to finish. I'm running the setup.sh from this file, http://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-latest.tar.gz. The setup.sh has lot of tasks to execute and it hangs for sometime

Re: [ansible-project] 'netconf_config' is not a valid attribute for a Play

2018-03-22 Thread Kai Stian Olstad
On Thursday, 22 March 2018 20.22.02 CET Armstrong Soo wrote: > Hi all, I am testing a very simple playbook for netconf and I didn't get > very far. What did I do wrong? > > > ERROR! 'netconf_config' is not a valid attribute for a Play > > The error appears to have been in

[ansible-project] 'netconf_config' is not a valid attribute for a Play

2018-03-22 Thread Armstrong Soo
Hi all, I am testing a very simple playbook for netconf and I didn't get very far. What did I do wrong? ERROR! 'netconf_config' is not a valid attribute for a Play The error appears to have been in '/home/as2618/FSL/main.yaml': line 1, column 3, but may be elsewhere in the file depending on

[ansible-project] Use role defined under another filesystem path

2018-03-22 Thread cmoullia
Hi My playbook is executed from this directory /home/projectA/playbook and it contains roles directory. One of the task defined within a role of this playbook would like to call another role which is not defined under /home/projectA/playbook/roles but within a different directory

[ansible-project] Re: Playbook ignores attributes auth_pass\authorize and wont enter privilege mode.

2018-03-22 Thread igor
Just an update. I figured where authorize: yes and auth_pass: cisco should stand... Under "ios command:" tasks: - name: show run ios_command: authorize: yes auth_pass: cisco commands: hope this helps if anyone is having same issue. -- You received this message

[ansible-project] Re: Vars defined within a yml file not changed

2018-03-22 Thread cmoullia
Many thanks for your help. Problem resolved ! On Thursday, March 22, 2018 at 5:12:19 PM UTC+1, cmou...@redhat.com wrote: > > Hi, > > This syntax works to override the var "service_mesh" when we execute this > ansible playbook command > > "ansible-playbook -i inventory/cloud_host

Re: [ansible-project] Vars defined within a yml file not changed

2018-03-22 Thread Kai Stian Olstad
On Thursday, 22 March 2018 17.30.23 CET Brian Coca wrote: > when: service_mesh | bool > > the == is redundant at this point I know, but I like reading and using explicit rather than implicit code. -- Kai Stian Olstad -- You received this message because you are subscribed to the Google

Re: [ansible-project] Vars defined within a yml file not changed

2018-03-22 Thread Brian Coca
when: service_mesh | bool the == is redundant at this point -- -- Brian Coca -- 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

Re: [ansible-project] Vars defined within a yml file not changed

2018-03-22 Thread Kai Stian Olstad
On Thursday, 22 March 2018 17.12.19 CET cmoul...@redhat.com wrote: > Hi, > > This syntax works to override the var "service_mesh" when we execute this > ansible playbook command > > "ansible-playbook -i inventory/cloud_host playbook/post_installation.yml > -e service_mesh=true" > > but the

[ansible-project] Vars defined within a yml file not changed

2018-03-22 Thread cmoullia
Hi, This syntax works to override the var "service_mesh" when we execute this ansible playbook command "ansible-playbook -i inventory/cloud_host playbook/post_installation.yml -e service_mesh=true" but the var is not set to true if thethis var is defined within a extra_vars.yml file and

Re: [ansible-project] Playbook ignores attributes auth_pass\authorize and wont enter privilege mode.

2018-03-22 Thread Marcos Alano
Options like "host" and "username" are part of provider option. You should check the options and also the indentation. On Wed, Mar 21, 2018 at 7:54 PM, wrote: > Hi Everyone! > > I am new to "Ansible". I've created a playbook that backups cisco running > config. My problem is

[ansible-project] Re: Ansible vs Ansible Tower ?

2018-03-22 Thread Albert Shamsiyan
Thx for the reply sdoran So using Ansible is for free and I'll licensing for using Tower for more than 10 nodes? if so, what will be the definition if node ?? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

Re: [ansible-project] blockinfile: content="{{ item.content }}" -- Making it pretty

2018-03-22 Thread John Harmon
That works! Thanks Kai. On Thursday, March 22, 2018 at 8:39:55 AM UTC-6, Kai Stian Olstad wrote: > > On Wednesday, 21 March 2018 22.03.13 CET John Harmon wrote: > > I have the following which works. However, I would like to make the bash > > script code "pretty". It is found under the

[ansible-project] Ansible with Multiboot Machines

2018-03-22 Thread shane
Hi All Has anyone had successful experience using Ansible with multi boot machines. My case we have clusters of 16 machines that have 3 Boots: *1. Ubuntu 16 *grub option 0 *2. Windows 10 Pro *grub option 1 *3. Windows server 2016 *grub option 2 The challenge is booting from Windows back to

Re: [ansible-project] Using serial strategy for playbook imported in a toplevel playbook causes entire play termination if some host is unreachable

2018-03-22 Thread Andrey Agenosov
Interesting... I'm using version 2.4.0.0 (fresh enough as you see) and that's what I have with serial strategy: andrey@aagenosov:~/projects/devops/ansible_notes$ ansible-playbook -i '127.0.0.1,10.0.0.1' use_unavailable_nodes.yml --ask-pass -u andrey SSH password: PLAY [all]

[ansible-project] Re: Ansible vs Ansible Tower ?

2018-03-22 Thread sdoran
Ansible is the command line tool that does most of the work while Ansible Tower is a web application that provides a REST API, RBAC, secure credential storage, and a scheduler (among other things) *on top of* Ansible the command line tool. You can't have Ansible Tower without Ansible, so

[ansible-project] Ansible with multi boot machines - Ubuntu, Server 2016 and Win 10 Pro Machine clusters

2018-03-22 Thread shane
Hi All Has anyone had successful experience using Ansible with multi boot machines. My case we have clusters of 16 machines that have 3 Boots: *1. Ubuntu 16 *grub option 0 *2. Windows 10 Pro *grub option 1 *3. Windows server 2016 *grub option 2 The challenge is booting from Windows back to

Re: [ansible-project] Ansible Documentation : French Translation

2018-03-22 Thread Kitslap
Thank you @Andrew. I will work on it and publish it on my free time. Le vendredi 16 mars 2018 19:26:14 UTC+1, Andrew Latham a écrit : > > Kitslap > > You are fine to translate and share. You are only adding value to the > project where there is currently no method of handling translations. In

Re: [ansible-project] blockinfile: content="{{ item.content }}" -- Making it pretty

2018-03-22 Thread Kai Stian Olstad
On Wednesday, 21 March 2018 22.03.13 CET John Harmon wrote: > I have the following which works. However, I would like to make the bash > script code "pretty". It is found under the "content" section of the > with_items. How can I do this? > > - name: Ensure myscript.sh contains directory

[ansible-project] Do we have anything similar to puppet r10k deployment for Ansible

2018-03-22 Thread Balaram R
Hello, I would like to test my playbook in sandbox do we have anything similar to puppet r10k deployment for Ansible Regards, Bala -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails

[ansible-project] Re: Ansible script to spin up the VM in virtual box

2018-03-22 Thread Vijay Gongle
Hello Ram, I'm working on the same requirement. Do you have solution for it now? Can you help me in spinning up a VM in virtual bix using ansible, that would be great. Thanks in advance. Thanks, Vijay On Thursday, March 10, 2016 at 9:21:39 AM UTC-5, Ram wrote: > > Hi, > > I am new to

Re: [ansible-project] Don't create user when updating passwords

2018-03-22 Thread Brian Coca
Use the getent module to get user list, make the user task conditional on that. -- Brian Coca -- 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] Re: ansible-playbook error for load_config()

2018-03-22 Thread Alex Konkin
Hello, I've got similar errors on Ubuntu 16.04 and Ansible 2.0.0.2: a) TASK [pull an image] *** fatal: [127.0.0.1]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "Traceback (most recent call

[ansible-project] Don't create user when updating passwords

2018-03-22 Thread Martyn Kempster
Is there a way in the user module to not create a user if it doesn't find it. This is so we can update the password for that user on a list of servers, but if the server doesn't have the user it will just skip it rather than create a new user -- You received this message because you are

[ansible-project] Ansible playbook text/line insertion in file

2018-03-22 Thread Abhinav Agnihotri
Hi, This is my file, in which i want to change some existing line. Some random text: testing line Below are examples: Example 0 Example 1 Example 2 path:this file path is /home/ansible/Test_folder1/Test_path.cgf i need this: Some random text: testing line Below are some examples: Example 0

[ansible-project] Ansible vs Ansible Tower ?

2018-03-22 Thread Albert Shamsiyan
I'm confused. From what I've understood, There are Ansible and Ansible Tower. Ansible is for free while Ansible Tower costs. True \ False? In case True, 1) Where can I find comparison matrix ? \ What is the difference ?? 2) Where to download from ? -- You received this message because

[ansible-project] Re: Ansible Installation Issue on Linux

2018-03-22 Thread 'Daley Okuwa' via Ansible Project
try yum installed | grep pip or yum installed | grep python On Wednesday, March 21, 2018 at 12:47:54 PM UTC, SHR wrote: > RedHat 7 > > On Wednesday, March 21, 2018 at 6:00:16 PM UTC+5:30, Daley Okuwa wrote: >> >> hi, >> >> What flavour of unix are you working on and what version >> >> >> On

[ansible-project] Re: Ansible remote installation of SQL server 2016.

2018-03-22 Thread 12177589
I looked at the Detail.txt file that was installed, and found that it was the following error. Access denied,Should it be a question of permissions, how do you get around Windows authorization or generate credentials? > >

[ansible-project] Install playbook errors out

2018-03-22 Thread Rahul Singh
dict object has no attributes 'sydout'\n\nThe error appears to have been in 'usr/share/ceph-ansible-*vmasc* /roles/ceph-common/tasks/miscsystem_tuning.yml

[ansible-project] Re: Ansible issues with Windows deployment

2018-03-22 Thread 12177589
I have created a new ps1 file under Windows. I will put this code in it and call the file via ansible remote. I will solve this problem. Thank you very much! However, it is not clear that this code can only run once, and the second time will be wrong unless Windows is restarted.