Re: [ansible-project] modules apt: only_upgrade fail

2016-07-27 Thread richard934935
Thanks for you suggestion but I just get this when use you way ``` - name: upgrade docker-engine apt: name: docker-engine only_upgrade: docker-engine # state: latest ``` ``` TASK [upgrade docker-engine] *** ok:

Re: [ansible-project] modules apt: only_upgrade fail

2016-07-27 Thread richard934935
I just think this way is reinstall docker-engie to latest when you ues name and state=lastest it's different to upgrade this procedure 在 2016年7月21日星期四 UTC+8下午10:44:46,Kai Stian Olstad写道: > > On 21. juli 2016 03:44, richar...@gmail.com wrote: > > xx.xxx.xx.xxx | FAILED! => { > >

[ansible-project] Storing Arrays in variable

2016-07-27 Thread Mona Gopal
Dear All, I have a file with the below content: ## NexGen SS7 maximum allowed configuration file MAXIMUM_INSTANCES = 2 MAXIMUM_LINKS = 0 MTP2 = NO SCTP = YES M2UA = NO MTP3 = NO M3UA = YES SCCP = YES TCAP = YES *MAC = 441ea15e6f44,441ea15e6f46,441ea15e4ff8,441ea15e4ffa* LIC-START-TIME =

[ansible-project] Re: ansible windows raw module no response?

2016-07-27 Thread 'J Hawkesworth' via Ansible Project
If it is always running then may be you need to set up whatever the run.bat does as a windows service. You can install nssm.exe and use win_nssm module to install programs as services, and then use the win_service module to start and stop them. You can use fetch module against windows

Re: [ansible-project] Shell Module and escaping quotes

2016-07-27 Thread Jason Gilfoil
Thanks for the response/idea Kai. I was too focused on making it work the other way to consider breaking it up like that. I ran with the idea of grabbing the last log line in a separate task and using a when conditional however now i'm running into a different issue. Since i'm now using

[ansible-project] azure_rm_virtualmachine

2016-07-27 Thread Mohamed Ghaleb
Hi, I'm trying to use this Module to spin up a VM in Azure. However how can I bootstrap Ansible PS1 script which enables the WinRM for other tasks? Its working but I can't see how can I inject user data into it? Thank you in Advance! -- You received this message because you are subscribed to

[ansible-project] Linode Module: StackScripts?

2016-07-27 Thread Jonathan Duncan
It appears that in the linode module there is no mechanism currently in place for specifying a stackscript for the linode to use. Is this something in the works? Seems like a pretty significant missing feature. -- You received this message because you are subscribed to the Google Groups

Re: [ansible-project] Save a variable to a File

2016-07-27 Thread Kai Stian Olstad
On 27. juli 2016 14:15, John Lewis wrote: How do I save a variable to a file if it contained contents of a file on a host that couldn't support anything but the raw module? It depends, but if the content in the variable isn't to big this should work. - raw: echo '{{ variable }}'

Re: [ansible-project] How to add a 'fake’ loopback alias with the public/elastic IP address

2016-07-27 Thread Dick Davies
The first one is a template: task with a handler to restart the network The second is a lineinfile: task. On 27 July 2016 at 13:35, Rohit Maheshwari wrote: > Hi Everyone, > > I wanted to automate the below commands using ansible but I am facing > difficulty to do

[ansible-project] How to add a 'fake’ loopback alias with the public/elastic IP address

2016-07-27 Thread Rohit Maheshwari
Hi Everyone, I wanted to automate the below commands using ansible but I am facing difficulty to do that. Need your help. *- Adding a ‘fake’ loopback alias with the public/elastic IP address:* sudo cat >> /etc/sysconfig/network-scripts/ifcfg-lo\:0 << EOF DEVICE=lo:0 IPADDR=`curl

[ansible-project] yum groupinstall "Development tools" for mutliple Linux-based OS

2016-07-27 Thread Igor P.
Hi, I am new to Ansible and I am working a playbook that requires to have Development-tool installed on on CentOS based server. However, I was thinking about writing playbook that will be applicable to Debian-based OSs such as Ubuntu for example. What would be the module that can install

[ansible-project] ansible windows raw module no response?

2016-07-27 Thread fcxjluo
I just want to run my bat by raw module,like - name: exec run.bat raw: C:\run.bat The bat is about a program that get logs,so it will be always running,like Daemon. When I exec ansible-playbook,the task can't go on.How can I do? -- You received this message because you are subscribed to the

[ansible-project] Save a variable to a File

2016-07-27 Thread John Lewis
How do I save a variable to a file if it contained contents of a file on a host that couldn't support anything but the raw module? -- 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

[ansible-project] Gather variables from database

2016-07-27 Thread Gabriel Forster
In setting up a brand new server that is being migrated from old server with the same (similar) name. e.g. server1 is migrating to migrate-server1. The old server has a volume name mounted to a particular dir. e.g. the volume is mounted in /mydir/myvol3. Another server may have their volume

Re: [ansible-project] Shell Module and escaping quotes

2016-07-27 Thread Kai Stian Olstad
On 26. juli 2016 23:09, Jason Gilfoil wrote: I apologize if this isn't an strictly an ansible problem, but I'm attempting to run a command like the following which works when run directly on the server in bash but fails when I try running via ansible. - name: write commit to history

Re: [ansible-project] Re: How to install RHEL on mutiple nodes using ansible

2016-07-27 Thread Mark Janssen
Search for 'ansible-provisioning' on github... there are a few examples... Basically it sets up your kickstart environment (or cloud-infra) ... and then kickstarts systems. Next steps are then to run ansible against the newly built systems. On Wed, Jul 27, 2016 at 1:39 PM, Paul Tötterman

[ansible-project] Re: How to install RHEL on mutiple nodes using ansible

2016-07-27 Thread Paul Tötterman
> > Please help me with the configuration of ansible for setting up servers > with RHEL 7 > Ansible is more for setting up / configuring already installed servers. Use something else (kickstart?) for installing. Cheers, Paul -- You received this message because you are subscribed to the

Re: [ansible-project] Ansible-Python Dependency

2016-07-27 Thread Kai Stian Olstad
Have you read the documentation? On 27.07.2016 12:09, Mona Gopal wrote: I have a playbook written to fetch various type of inventory information. This playbook gives the following error when i try to run in on RHEL5.5 server with Python2.4.3 in it

[ansible-project] Ansible-Python Dependency

2016-07-27 Thread Mona Gopal
Dear All, I have a playbook written to fetch various type of inventory information. This playbook gives the following error when i try to run in on RHEL5.5 server with Python2.4.3 in it Error: fatal: [172.19.1.156]: FAILED! => {"changed": false, "failed": true, "msg": "Error:

[ansible-project] Ansible-Python Dependencey

2016-07-27 Thread Mona Gopal
Dear All, I have a playbook written to fetch various type of inventory information. This playbook gives the following error when i try to run in on a server with RHEL5.5 Python2.4.3 -- You received this message because you are subscribed to the Google Groups "Ansible Project"