[ansible-project] Issue with redhat_subscription module

2020-01-13 Thread Adam Morris
I suspect that nobody else has run across this particular issue yet. The redhat_subscription module has an error in it. If you are using pool_ids then you can either provide a list of ids, or a list of ids with quantities. Behind the scenes the module translates the former into the latter wi

[ansible-project] There appears to be both 'k=v' shorthand syntax and YAML in this task.

2020-05-16 Thread Adam Morris
There also appears to be some issues with the indentation, although that could be an artifact of mail. The tasks look like they are in k=v syntax, but if the following -name is indented it could be considered part of the same task. -- You received this message because you are subscribed to th

[ansible-project] Re: Ansible on AIX

2014-02-13 Thread Adam Morris
Yes... I have a bunch of basic configuration tasks that I have running on Linux and AIX. I have found a few (minor) issues so far... 1) Unpack requires gnu tar if you give it a compressed tar file, simple solution, give it uncompressed ones. :-D 2) Python can cause issues (I've had to compil

[ansible-project] Re: Ansible on AIX

2014-02-13 Thread Adam Morris
Of course I post and then realise that I missed a big one... The password format is different between AIX and Linux. I got round this by using jinja2 to convert the format for me... - name: add accounts for AIX user: name={{item.name}} append=yes createhome=yes group=group shell={{

[ansible-project] Re: Ansible on AIX

2014-02-13 Thread Adam Morris
On Wednesday, February 12, 2014 10:37:30 PM UTC-8, Mark Maas wrote: > > We found we needed to mold AIX to accept a few things that should be there > anyway: > > link /bin/md5sum with /bin/csum for instance. or the copy module won't work > We had issues with md5 but in our case it was because py

[ansible-project] Re: Looping group_vars into a template

2014-02-14 Thread Adam Morris
Depending on what your results should look like you have a couple of options... I have group_vars files for several different groups.. list_one: - item_a - item_b - item_c list_two: - { part_one: value_one_a, part_two: value_two_a } - { part_one: value_one_b, part_two:

Re: [ansible-project] How to manage cron tasks with ansible

2014-02-17 Thread Adam Morris
On Monday, February 17, 2014 8:54:29 AM UTC-8, Rubén Ortiz wrote: > > Hi Michael > > Firstable, thanks for reply. > > I am not totally sure if I understand completely what you are telling me. > Let me expose a short scenario, maybe other people like me who are newbie > on ansible some day find

[ansible-project] Re: Request for feedback: support for realtime output pull request

2014-02-18 Thread Adam Morris
On Monday, February 17, 2014 5:24:45 PM UTC-8, Lorin Hochstein wrote: > > Hi all: > > I submitted a pull request to implement realtime output: > https://github.com/ansible/ansible/pull/6035/ > > Since the proposed patch is large, Michael suggested starting a thread on > the mailing list to disc

Re: [ansible-project] Re: YUM: Much slower in ansible than on the cli

2014-02-19 Thread Adam Morris
I'm manually adding yum-utils in my RedHat installs as I am performing a minimal install. I figured that this was my fault for trying to install as little as possible. It might make some sense to document that dependency in the yum module page though. Adam On Wednesday, February 19, 2014 5:0

[ansible-project] Re: generate config file from template with N dimensional array

2014-02-20 Thread Adam Morris
I don't have anything quite this complicated, but I think that you should be able to do something like this... pool_list: - { name: pool1, server_list: {name: server1, hostname: hostname1, }, {name: server2, hostname: hostname2} } - { name: pool2, server_list: {name: server3, hostname:

[ansible-project] Re: library/system/cron pull request to add AIX support.

2014-02-21 Thread Adam Morris
Well, given that 1.5 is allegedly due in a couple of weeks, and this pull request has had no activity on it yet, can I ask if there is any chance that this (small) change is likely to make it into 1.5? Thanks, Adam On Monday, January 6, 2014 10:51:15 AM UTC-8, Adam Morris wrote

Re: [ansible-project] Disable logging in syslog, logging in general, how to implement it?

2014-02-22 Thread Adam Morris
On Saturday, February 22, 2014 7:07:23 AM UTC-8, Michael DeHaan wrote: > > "Don't you think that at some point it would be useful to support > different logging levels? Most systems have them." > > The no_log directive deals with invocation logging on the remotes only. > > There is *MUCH* more d

[ansible-project] Re: Minor Change for Standalone Plays

2014-02-22 Thread Adam Morris
> > > > One more thing, could you modify the 'unarchive' module to accept URLs in > the 'src' parameter? I tried to pass a URL (http://file.com/file.tar.gz) > but got an error. It's a common task to download a tar.gz file from the > web and then untar/unzip it. Perhaps others would find that

[ansible-project] Re: How do I create a variable shared by a number of tasks in a role in Ansible?

2014-02-25 Thread Adam Morris
On Sunday, February 23, 2014 10:25:46 AM UTC-8, Mark Butler wrote: > > (I created a SO question about this but maybe it would be better to ask > here - > Probably, I don't know your Significant Other... :-D In main.yml, I need to call a number of Java tasks so I have to specify the > classpat

[ansible-project] Re: How do I create a variable shared by a number of tasks in a role in Ansible?

2014-02-25 Thread Adam Morris
To be clear the answer is there in the precedence section... Either you want to define it at the playbook level, at the role level, as a role default, or parameterise it and pass it into the roles... I really don't know which works best for you but that variable precedence section covers it.

[ansible-project] Re: SSH users via ansible

2014-02-25 Thread Adam Morris
On Tuesday, February 25, 2014 8:58:26 AM UTC-8, Petr Sukharev wrote: > > Hello! > > I am newby in ansible world, but i like this tool and i try to use in my > enviroment.. > I have some question about user managment, and can't get solution :( > I have several projects (test, developer, productio

[ansible-project] Re: SSH users via ansible

2014-02-26 Thread Adam Morris
On Wednesday, February 26, 2014 1:05:33 AM UTC-8, Petr Sukharev wrote: > > Thanks for you reply, Adam! > I think, this solution is working like charm, but main reason for defined > users like variables - is keeping all information in separate file. It is > more simple for managing information a

[ansible-project] Re: SSH users via ansible

2014-02-26 Thread Adam Morris
I should add that you might want to look at the best practices document http://docs.ansible.com/playbooks_best_practices.html which will give you a clear picture of how you could lay out your files. If you want the same users on all hosts in all groups then you might want to put them in group_

[ansible-project] Re: deploying jars

2014-02-26 Thread Adam Morris
On Wednesday, February 26, 2014 6:05:26 PM UTC-8, Mark Butler wrote: > > Hi team, > > i need to download and deploy some jars using Ansible from Jenkins. Some > of our jars with dependencies are large (150mb) so this is slow. > > Assuming that you can get them onto the Ansible server (use local_

[ansible-project] Re: Serving files from a central asset server

2014-02-28 Thread Adam Morris
On Thursday, February 27, 2014 8:54:21 PM UTC-8, Jason Sheedy wrote: > > Hi guys, > I'm quite new to Ansible and would like to perform the following in an > idempotent fashion. I would basically like to minimise the number of > downloads I need to perform from the web for certain file assets, s

[ansible-project] Re: apt-key with HKP keyserver

2014-02-28 Thread Adam Morris
Yes, you did it right... But I'd try changing hkp (http keyserver protocol) to http... I've had similar issues with hkp before. Adam On Friday, February 28, 2014 12:03:05 PM UTC-8, Michael Mahemoff wrote: > > I'm trying to follow the instructions for installing MaraDB apt package ( > https://do

Re: [ansible-project] Ansible 1.5 is released!

2014-03-03 Thread Adam Morris
We're pretty far off topic here, but I'm curious what you mean by plays versus playbooks here... The documentation states that I can turn off fact gathering by explicitly setting gather_facts: no in my playbook... I have not upgraded to 1.5 yet, so I haven't tested this, but I would want to do

[ansible-project] Re: Get file

2014-03-04 Thread Adam Morris
Based on a previous discussion it is probably package-ui which is an invalid identifier. Try either package_ui or even just package. I hope that this helps, Adam -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this gr

[ansible-project] Timing issue, installing a package and then modifying one of it's files...

2014-03-04 Thread Adam Morris
I have come across an unusual timing issue... I'm not sure what is causing it but it is repeatable... Here is a single task file from part of my initial set up... (I've removed the AIX and 32 bit variants but they are interspersed with the 64 bit RedHat version. --- # file: roles/common/tasks

Re: [ansible-project] Timing issue, installing a package and then modifying one of it's files...

2014-03-04 Thread Adam Morris
On Tuesday, March 4, 2014 11:04:43 AM UTC-8, Michael DeHaan wrote: > > Do you think there's a background process spawned by sysstat that is > modifying it's own cron job? > > If there is it's fast enough that yum install sysstat && cat /etc/cron.d/sysstat gives me the results that I expect. It

Re: [ansible-project] Timing issue, installing a package and then modifying one of it's files...

2014-03-04 Thread Adam Morris
On Tuesday, March 4, 2014 1:13:46 PM UTC-8, Adam Morris wrote: > > > > On Tuesday, March 4, 2014 11:04:43 AM UTC-8, Michael DeHaan wrote: >> >> Do you think there's a background process spawned by sysstat that is >> modifying it's own cron job? >&

Re: [ansible-project] ad-hoc works, playbook fails. same task

2014-03-05 Thread Adam Morris
On Wednesday, March 5, 2014 7:30:57 AM UTC-8, Makimoto Marakatti wrote: > > I've got > > ask_sudo_pass = True > > on ~/.ansible.cfg > > Both are run as the user 'ansible'. > So I'm guessing I can rule that out? > No. ask_sudo_pass just tells it to ask you for the sudo password. It doesn't

[ansible-project] Re: Structuring inventory

2014-03-06 Thread Adam Morris
I don't know that there is a right or wrong way to do inventory, but I wouldn't do it like that. :-) Given that you have two environments that might be two groups... But if there is nothing in common between the hosts in an environment then that may not be the case. I would take your hosts a

[ansible-project] Re: regex to match name of include file

2014-03-06 Thread Adam Morris
Initial posts to the list are moderated, so that would explain the delay (I see it now)... There are two solutions to your question, but I think the easiest one is actually the best... In your case rename your files to (for example) 10.18.101.0.yml and use - include_vars: "{{ ansible_default_

[ansible-project] Re: regex to match name of include file

2014-03-06 Thread Adam Morris
On Thursday, March 6, 2014 10:47:36 AM UTC-8, KSS wrote: > > Hi Adam, thanks for the reply. > > I had actually already ended up doing exactly as you suggested. > > Out of interest what was the second solution? Is there a way to easily > manipulate the network address as I first intended? > You c

[ansible-project] Re: with_items specific variables

2014-03-06 Thread Adam Morris
Ummm, I'm not entirely sure what you want to do but you can easily use a dict to set the variables... hostlist: - { hostname: 'name1', item1: 'value1A'. item2: 'value1B' } - { hostname: 'name2', item1: 'value2A'. item2: 'value2B' } Then you have {{ item.hostname }}. {{ item.item1 }} and {{

Re: [ansible-project] Selecting hosts based on variable

2014-03-07 Thread Adam Morris
On Friday, March 7, 2014 8:42:24 AM UTC-8, James Martin wrote: > > You can create dynamic groups by using the group_by module: > > - name: Create groups based on location > group_by: key={{ location }} > > I have to say that group_by is a very useful module if you are trying to keep your inven

Re: [ansible-project] Get remote_user's home directory

2014-03-09 Thread Adam Morris
You also have ansible_user_id which might be useful. Adam -- 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. To po

Re: [ansible-project] Timing issue, installing a package and then modifying one of it's files...

2014-03-10 Thread Adam Morris
My stupidity was at fault... There is originally a commented out line in the file that ALSO matches the regexp I was using. So, my change was made to the second of two matching lines and not the first... Kind of confusing when using insertbefore... So I have... example line 1 # line 2 exampl

Re: [ansible-project] lininfile fails on line with colon in it

2014-03-19 Thread Adam Morris
On Wednesday, March 19, 2014 7:49:33 AM UTC-7, Philippe Eveque wrote: > > > > Using the lineinfile module, the only way I found for a line to contain a > column character, is to use something like I described. > > That is having a variable being defined like: > > a_column: "\x3A" > > and

[ansible-project] Re: Run ansible playbook with only recent changes from repo.

2014-03-24 Thread Adam Morris
Ummm, I'm not sure why you would want to do that really. I do have some suggestions... Create roles, and set them up so that you can run either individual roles or sets of roles. For example I have a common role, a role to set up zabbix clients, a role to set up some things on the TSM server

[ansible-project] Re: lineinfile insertbefore only works once using the same line

2014-03-24 Thread Adam Morris
On Saturday, March 22, 2014 3:54:47 PM UTC-7, John Murphy wrote: > > I feel like I'm missing something obvious here: > > Example of lineinfile with different insertbefore > > What am I doing wrong? > Nothing.. But Ansible is doing what you tell it, probably not what you want.. The documenta

[ansible-project] Re: Start Service Not Working

2014-03-24 Thread Adam Morris
On Monday, March 24, 2014 3:44:39 PM UTC-7, James Goodhouse wrote: > > Hey All, > > I'm having some issues getting a service to start and wanted to make sure > I'm not doing something stupid. > > Ummm, That's kind of hard to say without knowing what you are doing... This is not an RTFM respons

[ansible-project] Re: Subcollection diff

2014-03-27 Thread Adam Morris
I'm not entirely sure what you are trying to achieve here. The user module is idempotent and can be used to make sure that users are present or not... Are you trying to remove all users with UIDs between 1,000, and 29,999 that aren't in your list? How is this working for you? Have you tried t

Re: [ansible-project] Re: Subcollection diff

2014-03-27 Thread Adam Morris
On Thursday, March 27, 2014 11:07:02 AM UTC-7, Michael DeHaan wrote: > > So you're probably going to have problems above because one thing wants to > return a basic list and the other list you're trying to use is structured. > > I've seen this pattern held by others in the past where they keep a

Re: [ansible-project] Re: Subcollection diff

2014-03-27 Thread Adam Morris
On Thursday, March 27, 2014 1:35:05 PM UTC-7, Adam Morris wrote: > > > > On Thursday, March 27, 2014 11:07:02 AM UTC-7, Michael DeHaan wrote: >> >> On some of our systems we have Zabbix monitoring the password file and it >> tells us whenever there is a change (

[ansible-project] Re: Enabling/starting services under OpenWRT

2014-03-31 Thread Adam Morris
Try setting ANSIBLE_KEEP_REMOTE_FILES=1 before you run Ansible and it should leave the files that are copied over using SCP/SFTP. -vvv will show you exactly what it did so you can look at what happened and what went wrong. I hope that this helps, Adam On Friday, March 28, 2014 9:39:41 PM UTC

[ansible-project] Re: Checking folder exists

2014-03-31 Thread Adam Morris
On Saturday, March 29, 2014 3:18:23 PM UTC-7, Francisco Reyes wrote: > > New to ansible. > > Trying to create a playbook to do the following: > 1 Checks if a user exists and if not create > 2 Check if /home/user/.ssh exists and if not create it > 3 Copy ssh keys for the user > > > Ansible modules

[ansible-project] Re: Checking folder exists

2014-03-31 Thread Adam Morris
The UserX: variable portion wasn't used so I've removed it... > Ops: > - uname: user1 > passwd: ValidHash > - uname: user2 >passwd: ValidHash > > Then your tasks would be something like this... - user: name={{ item.uname }} state=present update_password=on_create password={{ item.pas

[ansible-project] Re: Checking folder exists

2014-03-31 Thread Adam Morris
On Monday, March 31, 2014 1:53:19 PM UTC-7, Francisco Reyes wrote: > > On Monday, March 31, 2014 4:32:36 PM UTC-4, Adam Morris wrote: >> >> What you want to do here is >> >> 2) Add the .ssh directory >> > > What module should I use for that? &g

Re: [ansible-project] Re: Checking folder exists

2014-04-01 Thread Adam Morris
On Monday, March 31, 2014 5:16:32 PM UTC-7, Brian Coca wrote: > > the authorized_keys module takes care of all of this if you let it manage > the .ssh dir. > I wasn't sure from the original description whether the intention is to set up the authorized_keys file or to add the users SSH keys int

[ansible-project] Re: cannot open `/etc/sudoers' for reading

2014-04-09 Thread Adam Morris
On Wednesday, April 9, 2014 9:30:38 AM UTC-7, Petr Sukharev wrote: > > > >> And in theory it is the very same logic. Ansible actually uses "sudo -Hi" >> to log in to the boxes. >> >> > Are you sure? > Try to add "sudo: True" in your exanple playbook. > or -s on the command line. Just because

Re: [ansible-project] 1.5.4: apt dist-upgrade fails with "No such file or directory"

2014-04-14 Thread Adam Morris
On Thursday, April 10, 2014 12:22:36 AM UTC-7, Jens-Christian Fischer wrote: > > as stated in the subject: It is ansible 1.5.4 > >> >> Are you using any of the appropriate flags for sudo? I'm wondering because it almost sounds like a permissions issue and you say it runs when you run it as root

[ansible-project] Re: Getting bug fix (pull request) into develop branch

2014-04-14 Thread Adam Morris
On Thursday, April 10, 2014 8:10:40 AM UTC-7, Patrick Galbraith wrote: > > Hi all, > > I have a very simple pull request at > https://github.com/CaptTofu/ansible/compare/nova_compute. This fix makes > it so the ansible module, nova_compute, works with HP Cloud and any cloud > provider that has

[ansible-project] Re: request help with configuration issue: 'sudo: True' has no effect.

2014-04-14 Thread Adam Morris
On Saturday, April 12, 2014 11:18:29 PM UTC-7, Joel Hughes wrote: > > > sudo_user: jhughes > > > This is working exactly as directed... I would remove sudo_user: myself but you could alternately set it to sudo_user: root. The default for sudo is for it to switch to root, but if you set su

[ansible-project] Re: mysql_user module doesnt create user for RDS

2014-04-15 Thread Adam Morris
This is working as designed... If you want the user created you should have state=present. What you are showing us makes sure that the user doesn't exist. (And you didn't need to ask four times in two lists). Adam On Tuesday, April 15, 2014 4:15:57 AM UTC-7, prateek gupta wrote: > > im trying

Re: [ansible-project] telnet module?

2014-04-16 Thread Adam Morris
On Wednesday, April 16, 2014 6:49:37 AM UTC-7, Michael DeHaan wrote: > > > Thus what you are discussing should really be (IMHO) a OSGI module or > whatever, rather than a telnet module -- why? It leads to infinitely clear > playbooks, describing desired resource state, not commands sent. > > >

[ansible-project] Re: unable to configure ansible properly - sudo: True has no effect on any task

2014-04-17 Thread Adam Morris
That would cause it to run sudo to become jhughes before running the command. Probably not what is wanted. I'm not sure what you're expecting differently... Are you getting errors? What are the errors? What are the tasks? Adam On Thursday, April 17, 2014 10:06:05 AM UTC-7, Brice Burgess

[ansible-project] Re: Creating group and user

2014-04-18 Thread Adam Morris
Are sure? What you show creates a "web" group and a "web" user who is a member of the "www" group. I would expect the error message that a www group doesn't exist. Adam On Friday, April 18, 2014 5:53:14 AM UTC-7, Wojciech Pietrzak wrote: > > Hi, > > I'm trying to create a "www" group and a "we

[ansible-project] Re: How to create user on remote machine and then configure the machine as this user?

2014-04-21 Thread Adam Morris
Yes... but please don't just copy that playbook. That gives you a passwordless user that can run commands as root without a password. The user module can take a password hash, and authorized keys can also be set up. Adam -- You received this message because you are subscribed to the Google G

Re: [ansible-project] Re: How to create user on remote machine and then configure the machine as this user?

2014-04-21 Thread Adam Morris
a password is harmless. If a user > that doesn't have a password, no one can log in like that user. > > On Monday, April 21, 2014 3:50:42 PM UTC+2, Adam Morris wrote: >> >> Yes... but please don't just copy that playbook. >> >> That gives you a passwordles

[ansible-project] Re: In playbook interate over a hash to rm files

2014-04-23 Thread Adam Morris
This could get unwieldy quickly but is there some reason why you can't use... - name: remove files file: path={{ item }} state=absent with_items: - '/root/testing' - '/root/testing2' - '/home/user/testfile' - '/home/user/testfile2' This has the big advantage over the command

[ansible-project] Re: Playbooks for users with different permissions

2014-04-25 Thread Adam Morris
The simple solution is not not put sudo=anything in the playbook. Those users needing to run with sudo can use command line flags to turn that on... It sounds like you have two separate sets of tasks... So why not use a pair of roles? If you have split your playbooks up into individual tasks

Re: [ansible-project] Overriding a template provided by a common role when invoked by a another role through dependency

2014-04-25 Thread Adam Morris
On Friday, April 25, 2014 12:01:16 AM UTC-7, Ernest0x wrote: > > > What you suggest could be useful only if you just want to override some > templates and/or files. But you may also want your 'extend' role to have > some new tasks of its own, so that they are run after the invocation of the

Re: [ansible-project] Limit playbook run by role?

2014-04-27 Thread Adam Morris
On Sunday, April 27, 2014 4:49:15 AM UTC-7, Aaron Hunter wrote: > > Peter, > > As for terminology I use "baseline" and "configuration item" (CI) > according to normal usage in the CM context (see IEEE 828-2012 and ISO > 10007:2003). Unfortunately "CI" is frequently used to mean continuous > in

[ansible-project] Re: AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'

2014-04-28 Thread Adam Morris
On Monday, April 28, 2014 3:25:08 AM UTC-7, Jitendra Nalwaya wrote: > > *Trying to install ansible using > **ansible-1.3.4-0.git20140403.el6.noarch.rpm > but it shows below error* > > Why? If you're using a Fedora/RedHat based OS then you should probably use the version from EPEL. This is

[ansible-project] Re: Loop over the items of a list defined as a host variable for each host in a specific group

2014-04-28 Thread Adam Morris
On Monday, April 28, 2014 10:35:15 AM UTC-7, Ernest0x wrote: > > In a task, I am trying to figure out how I can loop over the items of a > list that is defined as a host variable for each host in a specific > group. > I'm not sure what you are trying to do here so I can't offer too much advi

Re: [ansible-project] Re: Loop over the items of a list defined as a host variable for each host in a specific group

2014-04-29 Thread Adam Morris
On Apr 29, 2014 7:03 AM, "'Petros Moisiadis' via Ansible Project" < ansible-project@googlegroups.com> wrote: > > > My use case: I want a task to run for all network interfaces for each host in a specific group. Each host has a "network_interfaces" list variable. > I cannot be convinced that this i

Re: [ansible-project] Re: Loop over the items of a list defined as a host variable for each host in a specific group

2014-05-01 Thread Adam Morris
Actually I think that he is trying to configure something for a group of hosts rather than configure something on a group of hosts. For example lets assume that you have a DHCP server and you want to configure static ip addresses for each of your servers. You could run through each host grabbing a

[ansible-project] Re: Need help organizing tasks/playbooks for multiple operating systems

2014-05-01 Thread Adam Morris
On Thursday, May 1, 2014 10:12:58 AM UTC-7, Snyder, Chris wrote: > > I’m stuck. I’m sure this can all be done a better way, but right now, > I’m just not seeing it. Can anyone offer suggestions of what else to try > here? > I'm sure that there are many better ways... First, you can detect y

Re: [ansible-project] Re: Need help organizing tasks/playbooks for multiple operating systems

2014-05-01 Thread Adam Morris
I have to say that I agree. I was trying to show a better general solution but in my case I use an initial os load that puts the absolute minimum on the server. Then I add to it with ansible. On May 1, 2014 3:01 PM, "Brian Coca" wrote: > If you really really need to ensure that software wasn't

[ansible-project] Re: unsupported parameter for module: checksum

2014-05-05 Thread Adam Morris
On Monday, May 5, 2014 11:00:21 AM UTC-7, Sanket Gupta wrote: > > Hello > I am trying to use the synchroize /var/www folder between control host and > my appserver(s) > > Although the basic synchronize command works, the other options given at > http://docs.ansible.com/synchronize_module.html d

[ansible-project] Re: delegate_to running on unexpected host

2014-05-06 Thread Adam Morris
On Monday, May 5, 2014 7:06:10 AM UTC-7, Scott Anderson wrote: > > Hi all, > > My understanding of delegate_to is that it runs the task on the designated > host, once for each host in the current group, and with the current host’s > variables. > > msg: Destination /srv/sp/web/core not writabl

[ansible-project] Re: Debugging service module

2014-05-08 Thread Adam Morris
Actually, this looks like a bug that occurred with script and raw in some earlier versions of Ansible where the sudo success string was being leaked back. It was fixed, I'm now wondering if it was reverted in this case... Can you upgrade to 1.6.1 and try it again? Adam -- You received

Re: [ansible-project] how to have general playlist call specific playlist and/or roles?

2014-05-08 Thread Adam Morris
On Thursday, May 8, 2014 7:36:08 AM UTC-7, Snyder, Chris wrote: > > Thanks for this example. I’m still pondering over this and it’s > possibilities but I’m thinking that I’m probably going to have to rip out a > lot of the roles I’ve already defined and make them into task files called > fro

[ansible-project] Re: Debugging service module

2014-05-08 Thread Adam Morris
On Thursday, May 8, 2014 1:56:35 PM UTC-7, Anand Buddhdev wrote: > > On Thursday, 8 May 2014 22:50:26 UTC+2, Adam Morris wrote: > > Actually, this looks like a bug that occurred with script and raw in some >> earlier versions of Ansible where the sudo success string was bei

Re: [ansible-project] SSH connection problem

2014-05-16 Thread Adam Morris
On Friday, May 16, 2014 6:24:55 AM UTC-7, James Cammarata wrote: > > > You can make this permanent by changing the "transport = " setting in your > ansible.cfg to "transport = smart". > > Did you mean "transport = ssh"? Adam -- You received this message because you are subscribed to the Googl

Re: [ansible-project] SSH connection problem

2014-05-16 Thread Adam Morris
On Friday, May 16, 2014 7:57:10 AM UTC-7, Michael DeHaan wrote: > > smart will select "ssh" if you have ControlMaster capability on our > control machine, and will default to paramiko only if it does not. > > Yes, but if he's passing -c ssh and it fixes the issue then he might want to change fr

Re: [ansible-project] ansible user module

2014-05-16 Thread Adam Morris
On Friday, May 16, 2014 8:24:02 AM UTC-7, br...@antsmarching.net wrote: > > That is not the issue, the issue is that I am getting inconsistent > results, and ansible is not changing the client after I change the > playbook. If some one is able to point out something in my playbook that I > am

[ansible-project] Strange behavior in group_by module with 'with_items'

2014-05-23 Thread Adam Morris
This seems to be doing what you are telling it to do to me. Pseudocode: For every host in the inventory For every host-inventoryname Add the host to the host-inventoryname group. The one part I'm not sure about is whether host-inventoryname is being defined once and they are only being p

[ansible-project] Re: Early draft of a testing strategies doc

2014-05-27 Thread Adam Morris
On Monday, May 26, 2014 5:28:55 AM UTC-7, Michael DeHaan wrote: > > There are probably quite a few typos here yet as I just knocked this out, > but this is derived from my talk to the New York Continuous Delivery > Meetup* last week about achieving Continous Delivery workflows. > > http://docs.

[ansible-project] Re: Early draft of a testing strategies doc

2014-05-27 Thread Adam Morris
And again, but with content... Looks good to me... but what do I know. I submitted a pull request for two very minor issues... 1) typo of stage to state and 2) plural unit tests for a singular playbook... Adam On Monday, May 26, 2014 5:28:55 AM UTC-7, Michael DeHaan wrote: > > There are probab

[ansible-project] The Zen of Ansible?

2014-05-27 Thread Adam Morris
I have heard rumours that there is a mystic who enlightens his disciples with the Zen of Ansible... I have even seen some bits and pieces of his teachings along the way, but was wondering if there was a more definitive source somewhere. Here is some of the advice I have seen attributed to this

Re: [ansible-project] include another role's variables without running it's tasks?

2014-05-27 Thread Adam Morris
On Tuesday, May 27, 2014 2:00:20 PM UTC-7, Brice Burgess wrote: > In my example I have a backup role. It would like to know the path where > the apache-role stores websites by default so that it can back them up. > Lets say the apache role stores this variable as `apache_sites_dir` in its > d

Re: [ansible-project] Template/File path for dependencies

2014-05-28 Thread Adam Morris
For the specific example given: apache role and wsgi role there may be a simple, elegant, solution. Apache can include other configuration files, I don't know if it can include directories. If so include a directory. If not use the assemble module to create your included file. Then the wsgi r

Re: [ansible-project] Template/File path for dependencies

2014-05-28 Thread Adam Morris
On Wednesday, May 28, 2014 12:42:52 PM UTC-7, Ernest0x wrote: > > dependency. I am not sure if that can be done (easily and cleanly) with > an ngix type of "include" mechanism. Also, keep in mind that there are > systems that they do NOT provide such an "include" mechanism at all. > > And yet

Re: [ansible-project] Template/File path for dependencies

2014-05-29 Thread Adam Morris
On Thursday, May 29, 2014 1:52:16 AM UTC-7, Paul Oyston wrote: > > Just to confirm, I wasn't suggesting any form of inheritance in any way,... > I understand what you are saying, but unless the role that you run first (avoiding the d word) knows to expect a template from the later role then

Re: [ansible-project] with_items x count

2014-05-29 Thread Adam Morris
with_sequence: count=5 I'm not sure how that would work with with_items, but it's worth a try.. (with_nested used with sequences?) http://docs.ansible.com/playbooks_loops.html#looping-over-integer-sequences > -- You received this message because you are subscribed to the Google Groups "An

Re: [ansible-project] with_items x count

2014-05-29 Thread Adam Morris
On Thursday, May 29, 2014 9:29:42 AM UTC-7, Adam Morris wrote: > > with_sequence: count=5 I'm not sure how that would work with with_items, > but it's worth a try.. (with_nested used with sequences?) > > http://docs.ansible.com/playbooks_loops.html#loopi

[ansible-project] How would you?...

2014-05-29 Thread Adam Morris
Greetings, I have been asked to automate a software installation task, and the actual installation is relatively simple so I'm not having any problems there... Manual steps... mount an nfs directory on the client run a shell script from within the nfs directory (vendor provided installation scr

[ansible-project] Re: How would you?...

2014-05-29 Thread Adam Morris
On Thursday, May 29, 2014 1:29:28 PM UTC-7, Adam Morris wrote: > > I can automate all of these steps easily, and even make the shell script > dependent on whether a file exists (it creates several files, so that's > easy...) > > The question I have is whether there is a

Re: [ansible-project] How to use roles from the command line?

2014-06-03 Thread Adam Morris
On Monday, June 2, 2014 9:58:37 PM UTC-7, john...@caradvice.com.au wrote: > > without having to edit any files between getting it finished... > > > Methodological issue, not practical: it feels dirty to edit a file between > the test and the application. > Is creating and editing a new file the

[ansible-project] Re: Conditional variable assignments

2014-06-03 Thread Adam Morris
On Tuesday, June 3, 2014 12:17:39 AM UTC-7, arnej wrote: > > Hi, > > this is probably easy but I cannot figure out how to do this with Ansible: > > - some task that registers variable x > - some task that registers variable y > - some task that registers variable z > > - register a variable 'a' f

[ansible-project] Re: Are Roles enough?

2014-06-03 Thread Adam Morris
On Monday, June 2, 2014 9:38:45 PM UTC-7, David Carmean wrote: > > > In my mind, any particular role that a server may fill (and it may fill > more than one), in turn requires one or more "features" or "feature-sets" > in order to be able to fulfill that role. In other words, I think of a > h

[ansible-project] Best practice for recording Ansible provisioning runs

2014-06-04 Thread Adam Morris
In a similar situation I simply added a play to the role that stores a version number as a local fact. Then on subsequent runs I can check that local fact. The only proviso for that is that it is possible for someone to change the fact so don't rely on it for anything truly important. -- You

[ansible-project] Re: Best practice for recording Ansible provisioning runs

2014-06-04 Thread Adam Morris
On Wednesday, June 4, 2014 7:28:47 AM UTC-7, Adam Morris wrote: > > In a similar situation I simply added a play to the role that stores a > version number as a local fact. Then on subsequent runs I can check that > local fact. The only proviso for that is that it is possible fo

[ansible-project] Re: Using a file as input for lineinfule module

2014-06-05 Thread Adam Morris
On Thursday, June 5, 2014 3:37:11 AM UTC-7, Felix Gläske wrote: > > Hey, > is there a way to use a file from the machine where I run ansible to use > as input for the module lineinfile? > I'm not sure what you mean here? Are you wanting to create a file on the destination machine based on one

[ansible-project] Re: Issue with "insertafter"

2014-06-05 Thread Adam Morris
On Thursday, June 5, 2014 10:23:18 AM UTC-7, ha...@airseed.com wrote: > > When I try to use insertafter to update a local file, it doesn't insert > the text after the insertafter text, rather it appends the text at the end. > For eg. - local_action: lineinfile dest="./hosts" regexp="{{ > item.p

Re: [ansible-project] Lack of response to pull requests

2014-06-05 Thread Adam Morris
On Thursday, June 5, 2014 10:36:44 AM UTC-7, ams wrote: > > At 2014-06-05 11:05:44 -0500, ma...@sivel.net wrote: > > > > Once the P1/P2 queue has been tackled, you will likely see P3 issues > > being taken care of and so on. > > I also have a pending pull request, and so far I've been taking

[ansible-project] Re: Doing a diff between two device's facts

2014-06-05 Thread Adam Morris
On Thursday, June 5, 2014 2:56:23 PM UTC-7, Jason Edelman wrote: > > Hi, > > I have a single playbook using one module to gather facts about ONE device > and this works all good. Upon execution, I register a variable and display > several debug messages. All good. I added a second host to th

Re: [ansible-project] possible bug with users

2014-01-02 Thread Adam Morris
I am no expert, but I think that what he is saying is that when he includes base.yml then his setting of sudo:no in the file that includes base.yml is overridden. Thus his "possible bug with users" really translates as "possible bug with sudo being used when I don't expect it" It's really t

[ansible-project] A (maybe) dumb question... Plus some kudos.

2014-01-02 Thread Adam Morris
Greetings, -- 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. To post to this group, send email to ansible-project@

[ansible-project] A (probably dumb) question and some kudos.

2014-01-02 Thread Adam Morris
Greetings, This time I will hopefully not hit the wrong key and post my message before actually entering the body of it. (Sorry about that). First the Kudos... I've been playing with Ansible for the last few months getting it to do some base server configuration for me, and I am truly impr

Re: [ansible-project] A (probably dumb) question and some kudos.

2014-01-03 Thread Adam Morris
t as it would be, if > anything, a bit slower, when we knew we wanted one or the other, and also > maybe a bit error prone in the detection. > > --Michael > > > > > > On Thu, Jan 2, 2014 at 11:36 PM, Adam Morris > > wrote: > >> Greetings, >> >

[ansible-project] library/system/cron pull request to add AIX support.

2014-01-06 Thread Adam Morris
Greetings, I just submitted a really small pull request (3 adds, one deletion) that adds AIX support for cron functionality. It has been tested on AIX and works perfectly for me. I don't know how many other people are using AIX but I found it very impressive that most of my Linux set up stuf

  1   2   >