[ansible-project] problem on /r/ubuntu with installing weechat

2017-08-29 Thread hawk- windesk
Hiya guys, I donot wanna sound off-topic, but some-guy got onto /r/ubuntu https://redd.it/6wtj7m and needs a hands to guide him through using ansible on ubuntu for installing weechat. TBHonest that is our concern, dude. thank_you. -- You received this message because you are subscribed to

Re: [ansible-project] cloning a service for HA?

2017-08-29 Thread pixel fairy
> > > > > I totally agreed with Dick solution, but out of completeness's you > have > > > the > > > slurp module [1] that stores the data in memory. > > > But if the control machine has swap and is swapping some data could > end up > > > on the disk. > > > > > > [1]

[ansible-project] iterating using with_list

2017-08-29 Thread Pshem Kowalczyk
Hi, I have a requirement to iterate over list of lists: panels: - - name: disk_used_pt iterate: - path - name: diskio_all - - name: system_load_all - name: process_all I've tried with_items on that structure, but it flattens

Re: [ansible-project] Copy module can't find file, but normal cp command works correctly

2017-08-29 Thread Colin L
Thank you Matt. It would appear that I didn't RTFM. On Tuesday, August 29, 2017 at 12:21:19 PM UTC-6, Matt Martz wrote: > > The `copy` module defaults from copying from the ansible controller to the > remote target. > > To do a copy with a remote src, use the `remote_src` option > > On Tue,

Re: [ansible-project] Attending the Ansible Contributor Conference in San Francisco

2017-08-29 Thread Kai Stian Olstad
On 29. aug. 2017 18:46, Greg DeKoenigsberg wrote: If you’d like to attend in person, please sign up here: https://www.eventbrite.com/e/ansible-contributor-conference-san-francisco-2017-tickets-348557 The link is truncated, it should be:

[ansible-project] Re: Connecting to Domain Controller without using a Domain Admin account

2017-08-29 Thread Adam Michaels
Jordan, Thanks for the info and the links. You were right, I missed assigning the permissions to the WsMan instance. The links you sent helped me solve the issue. Ran on the DC and added my non-admin user. Got in the first time after. Thanks again! Adam -- You received this message

Re: [ansible-project] Copy module can't find file, but normal cp command works correctly

2017-08-29 Thread Matt Martz
The `copy` module defaults from copying from the ansible controller to the remote target. To do a copy with a remote src, use the `remote_src` option On Tue, Aug 29, 2017 at 12:58 PM Colin L wrote: > Hello, > > I am trying to use the copy module to do a simple copy; but

[ansible-project] Copy module can't find file, but normal cp command works correctly

2017-08-29 Thread Colin L
Hello, I am trying to use the copy module to do a simple copy; but I am getting an error that has me puzzled: Error that I get: AnsibleFileNotFound: Could not find or access '/root/Downloads/example.desktop' I have checked permissions, and that doesn't seem to be an issue, so to do some

Re: [ansible-project] Re: Ansible playbook for accessing url

2017-08-29 Thread Dick Visser
Hi there Couple of issues. * Your indentation seems off - all the parameters for 'uri' need to be indented further. See http://docs.ansible.com/ansible/latest/uri_module.html#examples * By the looks of it you seem to want to do a POST request, but you didn't specify the method as such (and the

[ansible-project] Re: Not sure how to fix this

2017-08-29 Thread Jerry Eidson
Nevermind. I used shell: instead of command: and it runs. On Tuesday, August 29, 2017 at 1:11:22 PM UTC-4, Jerry Eidson wrote: > > Hello All, > > I've been working with Ansible a few weeks. I am trying to create a list > of yum file updates. I ordinarily run > "sudo yum update --assume

[ansible-project] Not sure how to fix this

2017-08-29 Thread Jerry Eidson
Hello All, I've been working with Ansible a few weeks. I am trying to create a list of yum file updates. I ordinarily run "sudo yum update --assume --changelog | tee /tmp/hostname | cut -d'.' -f1`.txt" to get the update list created in the tmp directory. In the play book I have this: -

[ansible-project] Attending the Ansible Contributor Conference in San Francisco

2017-08-29 Thread Greg DeKoenigsberg
It seems like just a couple of months ago that we were all gathered together at AnsibleFest London…. Oh, right. It was just a couple of months ago! And here were are, just a week away from our next AnsibleFest. While the Fest team is busy making all the magic happen for San Francisco, we here

[ansible-project] UNREACHABLE

2017-08-29 Thread skippern999
Help! I start my ansible-playbook job and is running just fine, but then it throws the following error. *fatal: [xx.xx.103.60]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Shared connection to xx.xx.103.60 closed.\r\n", "unreachable": true}.* This

Re: [ansible-project] Vmware_guest

2017-08-29 Thread Philippe Eveque
What you have is a task that belongs to a tasks section You need to put this in the context of a play see http://docs.ansible.com/ansible/latest/playbooks_intro.html#playbook-language-example Phil 2017-08-29 11:30 GMT+02:00 olivier pouilly : > Hi all, > > I recently

Re: [ansible-project] cloning a service for HA?

2017-08-29 Thread Kai Stian Olstad
On tirsdag 29. august 2017 12.21.39 CEST Dick Visser wrote: > On 25 August 2017 at 10:01, Kai Stian Olstad > > wrote: > > On fredag 25. august 2017 03.28.23 CEST pixel fairy wrote: > >> maybe a script to randomly generate a key, archive, compress, and encrypt >

[ansible-project] Re: Ansible evaluates all variables for each task and each iteration in the task despite the vars are not actually used

2017-08-29 Thread Aleksandr Neshcheret
Also I have find the similar issue discussed in https://groups.google.com/forum/?utm_medium=email_source=footer#!searchin/ansible-devel/lazy|sort:relevance/ansible-devel/k7Tei-nBygs/N9xYtno9AwAJ but it seems that fix provided in https://github.com/ansible/ansible/issues/17024 did not help, as

Re: [ansible-project] Re: Ansible playbook for accessing url

2017-08-29 Thread Seeram Venkatesh
Hi Raj, Thanks for the response. Ya I figured out something about uri module and wrote a started writing a play. --- - name: hitting admin console hosts: appservers become: true become_user: weblogic tasks: - name: post to consul uri: url: http://graycsm1wv/CherwellAPI/ I got

[ansible-project] Re: Ansible playbook for accessing url

2017-08-29 Thread raj kr
This possible via uri, if rest api is supported on your managemennt system , you can define login structure and form url under uri and provide login structure to login On Tuesday, August 29, 2017 at 6:55:11 PM UTC+5:30, Seeram Venkatesh wrote: > > Hello Techies, > > I am improvising my Ansible

[ansible-project] Ansible playbook for accessing url

2017-08-29 Thread Seeram Venkatesh
Hello Techies, I am improvising my Ansible skills in a very slow pace and I got stuck here: Is there anyway to hit my ticket management system (cherwell) url and login to it with credentials through Ansible? I've so far researched about uri module but not able to fetch more? TIA. -- You

[ansible-project] cli based configuration via ansible

2017-08-29 Thread raj kr
I am trying to do some cli based config on a router via ansible, I can execute command on shell via ansible but is it possible to add any new config via cli command ? Executed below command via yml but did not work, I am trying to execute one cli command(example - oam-enable) by going to

Re: [ansible-project] Re: Trigger a new jenkins job through ansible

2017-08-29 Thread Seeram Venkatesh
Thank you very much. It really helps me a lot. Regards, Venkatesh On Tue, Aug 29, 2017 at 5:34 AM, 'J Hawkesworth' via Ansible Project < ansible-project@googlegroups.com> wrote: > Turns out I needed this too. In the end I wound up with the following > role (lightly tested in ansible 2.3.0.0 so

[ansible-project] Re: Playbooks and diff

2017-08-29 Thread 'J Hawkesworth' via Ansible Project
You could probably use command or shell modules to run a diff between the downloaded file and the master file. On Saturday, August 26, 2017 at 10:13:51 PM UTC+1, Tcpip wrote: > > HI all, > > I have a simple playbook that only downloads configuration to a txt file, > but where Im getting lost

Re: [ansible-project] Need to chat off-forum

2017-08-29 Thread Dick Davies
This is currently an opinion argument, and you need to turn it into a numbers argument. It's the only way to get past egos. If a team deliver what they're asked to do on spec and on time, I personally don't care what tooling they use, whether it's ansible or hand-crafted. If they're delivering

Re: [ansible-project] How to use cpio related commands in playbooks?

2017-08-29 Thread Dick Visser
AFAIK there isn't any module that can do this (yet). So you'd have to resort to command. Dick On 29 August 2017 at 09:41, wrote: > > > down votefavorite > > I need to use cpio related commands in playbook like cpio -imdv . Which > ansible module has to be used for CPIO

Re: [ansible-project] Re: Monit module doesn't seem to work as expected with ubuntu 16.04

2017-08-29 Thread Naween Ghimire
Thanks for the input. I am installing monit 5.6 on both 14.04/16.04 versions. So version mismatch is not an issue. Regards, Naween > On 29-Aug-2017, at 3:07 PM, 'J Hawkesworth' via Ansible Project > wrote: > > Does 16.04 come with a different version of monit

Re: [ansible-project] Unable to download the file using the get_url

2017-08-29 Thread Dick Visser
Chrome runs on a different machine, and under a different user account, than the machine you're targeting with the playbook (I hope). Try signing in to the target host and see if you can "sudo wget http://examle.net/filename.tar; Dick On 29 August 2017 at 11:48,

[ansible-project] Re: Using with_items with a dictionary

2017-08-29 Thread Arbab Nazar
Hi Michael, This simple example might help you that how we can use the with_items with dictionary: --- - hosts: all become: no gather_facts: no connection: local vars: USERS: foo: state: present company: 'Bar foo' email: f...@test.net uid: 6001

[ansible-project] Ansible evaluates all variables for each task and each iteration in the task despite the vars are not actually used

2017-08-29 Thread Aleksandr Neshcheret
Hello everybody, I am using Ansible 2.3.1.1 with Jenkins. I have encountered the following issue - my playbook which uses variables from aws dynamic inventory becomes extremely slow. The most interesting case that if I copy this playbook outside my jenkins workspace and run it in any other

Re: [ansible-project] cloning a service for HA?

2017-08-29 Thread Dick Visser
On 25 August 2017 at 10:01, Kai Stian Olstad wrote: > On fredag 25. august 2017 03.28.23 CEST pixel fairy wrote: >> maybe a script to randomly generate a key, archive, compress, and encrypt >> the folder, fetch to local, copy to standby and decrypt there. that

Re: [ansible-project] Need to chat off-forum

2017-08-29 Thread 'J Hawkesworth' via Ansible Project
I'd suggest automating stuff for any environments you have control over (say development or just virtualization running on your machine if necessary). You can give other teams the ability to control password access (probably lots of ways to do this - keep inventory in separate repo and let

[ansible-project] Unable to download the file using the get_url

2017-08-29 Thread vkishankalyan
I am using the below playbook - name: Downloading the file from URL get_url: url: "http://{{url_path_with_file_name}}; dest: /tmp/ Command i used is ansible-playbook - test.ymal --extra-vars "url_path_with_file_name=examle.net/filename.tar" Error : "mode":

[ansible-project] trouble slurping archives

2017-08-29 Thread pixel fairy
using ansible 2.3.2.0 on fedora 26, the vagrant boxes run ubuntu 16.04 slurp fails on tar.gz archives --- - hosts: alice become: true tasks: - name: archive etc archive: path: /etc dest: /etc.tgz - name: read in slurp: src: /etc.tgz register: etc - hosts:

[ansible-project] Re: Monit module doesn't seem to work as expected with ubuntu 16.04

2017-08-29 Thread 'J Hawkesworth' via Ansible Project
Does 16.04 come with a different version of monit than 14.04? Its possible the monit module might need some code changes to keep up with later versions of monit I suppose (I am just guessing here). Jon On Saturday, August 26, 2017 at 8:43:15 PM UTC+1, naw...@indix.com wrote: > > Hi, > > The

[ansible-project] Re: Trigger a new jenkins job through ansible

2017-08-29 Thread 'J Hawkesworth' via Ansible Project
Turns out I needed this too. In the end I wound up with the following role (lightly tested in ansible 2.3.0.0 so far). $ tree -A jenkins-job/ jenkins-job/ ├── defaults │ └── main.yml └── tasks └── main.yml 2 directories, 2 files $ cat jenkins-job/defaults/main.yml ---

[ansible-project] Vmware_guest

2017-08-29 Thread olivier pouilly
Hi all, I recently discovered the module VMware_guest for ansible. I would like to know how it's work. Indeed I installed ansible version 2.3.2.0. and the module python 2.7.6 and PyVmomi. And when I run a ansible-playbook like this : - name: Gather all registered virtual machines

[ansible-project] How to use cpio related commands in playbooks?

2017-08-29 Thread vkishankalyan
down votefavorite I need to use cpio related commands in playbook like cpio -imdv . Which ansible module has to be used for CPIO commands -- You received this message because you are

Re: [ansible-project] How to make ansbile output ordered?

2017-08-29 Thread Uwe Sauter
Due to the nature of asynchronous execution I don't think there is a way to do what you want to achieve. If you can afford the time you could serialize your playbooks by putting "serial: 1" on the same level as "hosts". But even then I'm not sure in which host order Ansible executes the

Re: [ansible-project] Using with_items with a dictionary

2017-08-29 Thread Uwe Sauter
My first thought was to put those two tasks into a block, modify task 1 to register a new variable that contains the current site and use it in task 2. Then I remembered that you cannot loop over a block (currently… https://github.com/ansible/ansible/issues/13262). You could try to create a