# Latest

**URL:** https://forum.ansible.com/latest.md?page=972

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

**Page:** 973

---

## [What is the difference between \`notify\` and just a task at the end of a playbook?](https://forum.ansible.com/t/what-is-the-difference-between-notify-and-just-a-task-at-the-end-of-a-playbook/15127)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 1\
**Last updated:** [May 1, 2014, 5:12pm UTC](https://forum.ansible.com/t/what-is-the-difference-between-notify-and-just-a-task-at-the-end-of-a-playbook/15127 "2014-05-01T17:12:01Z")

</div>

Hi! I just started to learn Ansible. In the docs, there is such words: These ‘notify’ actions are triggered at the end of each block of tasks in a playbook, and will only be triggered once even if notified by multipl…

---

## [accelerated mode error "python-keyczar must be installed"](https://forum.ansible.com/t/accelerated-mode-error-python-keyczar-must-be-installed/15131)

<div class="topic-metadata">

**Author:** [@marc.petrivelli](https://forum.ansible.com/u/marc.petrivelli)\
**Replies:** 1\
**Last updated:** [May 1, 2014, 5:08pm UTC](https://forum.ansible.com/t/accelerated-mode-error-python-keyczar-must-be-installed/15131 "2014-05-01T17:08:08Z")

</div>

I am trying to use accelerated mode for a play in my playbook and I get the following error: " python-keyczar must be installed on the control machine to use accelerated modes". Python-keyczar is certainly installed: \` …

---

## [Problems with the ec2\_vol task](https://forum.ansible.com/t/problems-with-the-ec2-vol-task/15112)

<div class="topic-metadata">

**Author:** [@Bryan\_Hunt](https://forum.ansible.com/u/Bryan_Hunt)\
**Replies:** 2\
**Last updated:** [May 1, 2014, 1:15am UTC](https://forum.ansible.com/t/problems-with-the-ec2-vol-task/15112 "2014-05-01T01:15:30Z")

</div>

I'm wondering if I am misusing the ec2\_vol task or if I've found a bug. In my playbook, I create 5 ec2 instances. I then try to attach volumes to them. tasks: - name: get em runnning local\_action: …

---

## [Distribute special modules along with roles](https://forum.ansible.com/t/distribute-special-modules-along-with-roles/15098)

<div class="topic-metadata">

**Author:** [@Ernest0x](https://forum.ansible.com/u/Ernest0x)\
**Replies:** 6\
**Last updated:** [April 30, 2014, 8:42pm UTC](https://forum.ansible.com/t/distribute-special-modules-along-with-roles/15098 "2014-04-30T20:42:36Z")

</div>

Hello, I know about a ./library path that can exist at the playbook level, but I did not find any reference to a ./library path at role level. Is there any reason why this is not supported? Would it be a desirable fea…

---

## [Substitution inside lookup plugin](https://forum.ansible.com/t/substitution-inside-lookup-plugin/15122)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 4\
**Last updated:** [April 30, 2014, 8:19pm UTC](https://forum.ansible.com/t/substitution-inside-lookup-plugin/15122 "2014-04-30T20:19:15Z")

</div>

I’d really like to do something like this: name: uploading ssh keys action: authorized\_key user={{ item.username }} key=“{{ lookup(‘file’, ‘keys/ssh.{{ item.username }}.pub’) }}” with\_items: users but the lookup pl…

---

## [request: group\_vars loading strategy to handle deploy-specific roles variables](https://forum.ansible.com/t/request-group-vars-loading-strategy-to-handle-deploy-specific-roles-variables/14842)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 9\
**Last updated:** [April 30, 2014, 8:05pm UTC](https://forum.ansible.com/t/request-group-vars-loading-strategy-to-handle-deploy-specific-roles-variables/14842 "2014-04-30T20:05:18Z")

</div>

In a previous thread, it was discussed how one could apply deployment specific vars to a play. My solution at the time was to pass in a master config “pointer” file via the commandline with the -e “@filename” idiom conta…

---

## [pycrypto2.6, paramiko, Ansible 1.6 issue](https://forum.ansible.com/t/pycrypto2-6-paramiko-ansible-1-6-issue/15123)

<div class="topic-metadata">

**Author:** [@Mark\_Phillips](https://forum.ansible.com/u/Mark_Phillips)\
**Replies:** 0\
**Last updated:** [April 30, 2014, 5:26pm UTC](https://forum.ansible.com/t/pycrypto2-6-paramiko-ansible-1-6-issue/15123 "2014-04-30T17:26:22Z")

</div>

Folks, I’m running CentOS6.5, and have pulled the default python-crypto RPM to use a newer version so Vault works. I’m running an RPM build from the Ansible source (devel branch - ansible-1.6-0.git201404301338.el6.noarc…

---

## [optimize playbook](https://forum.ansible.com/t/optimize-playbook/15121)

<div class="topic-metadata">

**Author:** [@Alexey\_Lesovsky](https://forum.ansible.com/u/Alexey_Lesovsky)\
**Replies:** 1\
**Last updated:** [April 30, 2014, 4:56pm UTC](https://forum.ansible.com/t/optimize-playbook/15121 "2014-04-30T16:56:31Z")

</div>

Hi all! I write role for Ansible Galaxy, and have a little problem. I have 2 host groups and need execute different tasks for this groups. At this moment I doing it with the following configuration, this is the root pla…

---

## [access to the variable](https://forum.ansible.com/t/access-to-the-variable/15115)

<div class="topic-metadata">

**Author:** [@Alexey\_Lesovsky](https://forum.ansible.com/u/Alexey_Lesovsky)\
**Replies:** 2\
**Last updated:** [April 30, 2014, 1:44pm UTC](https://forum.ansible.com/t/access-to-the-variable/15115 "2014-04-30T13:44:19Z")

</div>

Hi all! Have some trouble in the access to the part of variable. I have following configuration: \` service\_user: { name: “service”, pass: “blablabla”, flags: “ADMIN” } \` and later: \` name: “Stage 3: start serv…

---

## [How to loop over variables so task "template" can generate 1 file per variable](https://forum.ansible.com/t/how-to-loop-over-variables-so-task-template-can-generate-1-file-per-variable/15117)

<div class="topic-metadata">

**Author:** [@Servermanaged](https://forum.ansible.com/u/Servermanaged)\
**Replies:** 2\
**Last updated:** [April 30, 2014, 1:34pm UTC](https://forum.ansible.com/t/how-to-loop-over-variables-so-task-template-can-generate-1-file-per-variable/15117 "2014-04-30T13:34:43Z")

</div>

Hello friends. Given a list of variables like this:

---

## [Postgres issues on Amazon RDS related to pg\_authid](https://forum.ansible.com/t/postgres-issues-on-amazon-rds-related-to-pg-authid/15118)

<div class="topic-metadata">

**Author:** [@Grant\_Means](https://forum.ansible.com/u/Grant_Means)\
**Replies:** 0\
**Last updated:** [April 30, 2014, 1:25pm UTC](https://forum.ansible.com/t/postgres-issues-on-amazon-rds-related-to-pg-authid/15118 "2014-04-30T13:25:39Z")

</div>

I just posted the following question on Amazon’s forums: I’m trying to build an Ansible playbook for provisioning Postgres databases on RDS, but ran into an issue while trying to create users. The playbook responds wit…

---

## [using Ansible properly with database inventory](https://forum.ansible.com/t/using-ansible-properly-with-database-inventory/15050)

<div class="topic-metadata">

**Author:** [@larry\_tjoelker](https://forum.ansible.com/u/larry_tjoelker)\
**Replies:** 2\
**Last updated:** [April 30, 2014, 8:30am UTC](https://forum.ansible.com/t/using-ansible-properly-with-database-inventory/15050 "2014-04-30T08:30:46Z")

</div>

I have a couple of probably simple questions about using Ansible properly. Background: Its not practical in our environment to install every software stack component needed by individual applications on all relevant hos…

---

## [include with remote\_user](https://forum.ansible.com/t/include-with-remote-user/15110)

<div class="topic-metadata">

**Author:** [@A\_J](https://forum.ansible.com/u/A_J)\
**Replies:** 4\
**Last updated:** [April 30, 2014, 7:21am UTC](https://forum.ansible.com/t/include-with-remote-user/15110 "2014-04-30T07:21:52Z")

</div>

Hi, I’m new to ansible and have been unable to achieve the following: I would like to include tasks in my playbook and run them with another user that’s running the playbook. I have tried the following, without success…

---

## [Error validating launchpad.net SSL certificate?](https://forum.ansible.com/t/error-validating-launchpad-net-ssl-certificate/15107)

<div class="topic-metadata">

**Author:** [@Joost\_Cassee](https://forum.ansible.com/u/Joost_Cassee)\
**Replies:** 4\
**Last updated:** [April 29, 2014, 8:15pm UTC](https://forum.ansible.com/t/error-validating-launchpad-net-ssl-certificate/15107 "2014-04-29T20:15:36Z")

</div>

Hi, I am using the latest commit from the devel branch, and I am having difficulty adding an Apt repository. The system I am running Ansible on is Ubuntu 12.04, the provisioned host is running 14.04. I am using this tas…

---

## [AttributeError: 'module' object has no attribute 'HAVE\_DECL\_MPZ\_POWM\_SEC'](https://forum.ansible.com/t/attributeerror-module-object-has-no-attribute-have-decl-mpz-powm-sec/15099)

<div class="topic-metadata">

**Author:** [@Jitendra\_Nalwaya](https://forum.ansible.com/u/Jitendra_Nalwaya)\
**Replies:** 3\
**Last updated:** [April 29, 2014, 5:12pm UTC](https://forum.ansible.com/t/attributeerror-module-object-has-no-attribute-have-decl-mpz-powm-sec/15099 "2014-04-29T17:12:48Z")

</div>

Trying to install ansible using ansible-1.3.4-0.git201404030000.el6.noarch.rpm but it shows below error \[root@xyzabc0170 installables\]# rpm -ivh ansible-1.3.4-0.git201404030000.el6.noarch.rpm Preparing… ###############…

---

## [upgrading apt packages, getting stderr: /bin/sh: apt-get: command not found](https://forum.ansible.com/t/upgrading-apt-packages-getting-stderr-bin-sh-apt-get-command-not-found/15109)

<div class="topic-metadata">

**Author:** [@Gallagher\_Polyn](https://forum.ansible.com/u/Gallagher_Polyn)\
**Replies:** 4\
**Last updated:** [April 29, 2014, 3:56pm UTC](https://forum.ansible.com/t/upgrading-apt-packages-getting-stderr-bin-sh-apt-get-command-not-found/15109 "2014-04-29T15:56:39Z")

</div>

Hi, Having just provisioned a Digital Ocean droplet, in my next pre\_task, I proceed to attempt to upgrade apt packages: apt: upgrade=full update\_cache=yes …using this command form… ansible-playbook -i hosts basic.…

---

## [Executing shell script on remote machine not working](https://forum.ansible.com/t/executing-shell-script-on-remote-machine-not-working/15108)

<div class="topic-metadata">

**Author:** [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Replies:** 1\
**Last updated:** [April 29, 2014, 12:50pm UTC](https://forum.ansible.com/t/executing-shell-script-on-remote-machine-not-working/15108 "2014-04-29T12:50:16Z")

</div>

---

## [Plugin and Role for Server Density available for review](https://forum.ansible.com/t/plugin-and-role-for-server-density-available-for-review/15111)

<div class="topic-metadata">

**Author:** [@Jurgen\_Haas](https://forum.ansible.com/u/Jurgen_Haas)\
**Replies:** 0\
**Last updated:** [April 29, 2014, 9:18am UTC](https://forum.ansible.com/t/plugin-and-role-for-server-density-available-for-review/15111 "2014-04-29T09:18:45Z")

</div>

Over the past weeks I have developed a plugin for Server Density, a monitoring solution for inventories and services. This plugin is able to synchronize your Ansible inventory with your Server Density account and also ma…

---

## [Idiomatic way of adding switches to Ansible directives from command-line?](https://forum.ansible.com/t/idiomatic-way-of-adding-switches-to-ansible-directives-from-command-line/15106)

<div class="topic-metadata">

**Author:** [@Alexandr\_Kurilin](https://forum.ansible.com/u/Alexandr_Kurilin)\
**Replies:** 1\
**Last updated:** [April 28, 2014, 11:57pm UTC](https://forum.ansible.com/t/idiomatic-way-of-adding-switches-to-ansible-directives-from-command-line/15106 "2014-04-28T23:57:04Z")

</div>

Hello folks, I set up my deployment flow in such a way that Ansible clones a git repo locally (generally named “myrepo-deploy” and never modified by hand), cleans and syncs it as master, builds the contents and deploys …

---

## ["hostname" Module Does Not Work on RHEL 7](https://forum.ansible.com/t/hostname-module-does-not-work-on-rhel-7/15101)

<div class="topic-metadata">

**Author:** [@Dustin\_C\_Hatch](https://forum.ansible.com/u/Dustin_C_Hatch)\
**Replies:** 1\
**Last updated:** [April 28, 2014, 9:19pm UTC](https://forum.ansible.com/t/hostname-module-does-not-work-on-rhel-7/15101 "2014-04-28T21:19:42Z")

</div>

I've got some RHEL 7 machines already that need to be managed by Ansible. So far, the only problem I've found is that the "hostname" module fails to permanently set the hostname of the machine. This is because the HOS…

---

## [Is there a way to shortcut local host?](https://forum.ansible.com/t/is-there-a-way-to-shortcut-local-host/15102)

<div class="topic-metadata">

**Author:** [@ghexsel](https://forum.ansible.com/u/ghexsel)\
**Replies:** 2\
**Last updated:** [April 28, 2014, 7:07pm UTC](https://forum.ansible.com/t/is-there-a-way-to-shortcut-local-host/15102 "2014-04-28T19:07:01Z")

</div>

This pops up in a significant share of my scripts: hosts: 127.0.0.1 connection: local gather\_facts: false Is there any way to shortcut this to something shorter like local\_script or somesuch?

---

## [Use of host and group variables in hosts patterns](https://forum.ansible.com/t/use-of-host-and-group-variables-in-hosts-patterns/15100)

<div class="topic-metadata">

**Author:** [@Ernest0x](https://forum.ansible.com/u/Ernest0x)\
**Replies:** 4\
**Last updated:** [April 28, 2014, 6:37pm UTC](https://forum.ansible.com/t/use-of-host-and-group-variables-in-hosts-patterns/15100 "2014-04-28T18:37:11Z")

</div>

I am trying to use a host variable (actually a group variable) in a "hosts:" pattern in a playbook, but without success. Is this supposed to work? The use case is this: I want to write a playbook that is invoked by p…

---

## [Sudo option hangs when running simple shell commands](https://forum.ansible.com/t/sudo-option-hangs-when-running-simple-shell-commands/13553)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 10\
**Last updated:** [April 28, 2014, 2:05pm UTC](https://forum.ansible.com/t/sudo-option-hangs-when-running-simple-shell-commands/13553 "2014-04-28T14:05:37Z")

</div>

This hangs and I have to kill the process. I don’t want to use -K since I’d rather use passwordless ssh. ansible -i hosts webserver1 -m shell -a “/sbin/service httpd restart” --sudo Now, if I pass the sudo command via t…

---

## [Is there any way to pass an inventory dictionary directly into the Inventory object?](https://forum.ansible.com/t/is-there-any-way-to-pass-an-inventory-dictionary-directly-into-the-inventory-object/13513)

<div class="topic-metadata">

**Author:** [@Jasper\_Capel](https://forum.ansible.com/u/Jasper_Capel)\
**Replies:** 13\
**Last updated:** [April 28, 2014, 2:05pm UTC](https://forum.ansible.com/t/is-there-any-way-to-pass-an-inventory-dictionary-directly-into-the-inventory-object/13513 "2014-04-28T14:05:31Z")

</div>

Hi, I am attempting to integrate Ansible with our systems management framework (python/Django) as a way to run commands on remote machines. We’ve already been using Ansible for a while and the application I’m integratin…

---

## [First installation of Tower fails in ./setup.sh](https://forum.ansible.com/t/first-installation-of-tower-fails-in-setup-sh/15097)

<div class="topic-metadata">

**Author:** [@Larry\_Fast](https://forum.ansible.com/u/Larry_Fast)\
**Replies:** 3\
**Last updated:** [April 28, 2014, 2:03pm UTC](https://forum.ansible.com/t/first-installation-of-tower-fails-in-setup-sh/15097 "2014-04-28T14:03:13Z")

</div>

After downloading Ansible Tower, I get the install error below. I’m following these pages for the install of Ansible and Tower http://docs.ansible.com/intro\_installation.html#running-from-source http://releases.ansible…

---

## [transport=smart, SFTP failures and ssh connections](https://forum.ansible.com/t/transport-smart-sftp-failures-and-ssh-connections/14897)

<div class="topic-metadata">

**Author:** [@marc.petrivelli](https://forum.ansible.com/u/marc.petrivelli)\
**Replies:** 5\
**Last updated:** [April 28, 2014, 11:34am UTC](https://forum.ansible.com/t/transport-smart-sftp-failures-and-ssh-connections/14897 "2014-04-28T11:34:56Z")

</div>

In my ansible.cfg I had the following set: \[defaults\] transport=smart \[ssh\_connection\] scp\_if\_ssh=True For one of my target hosts (specifically a VMware vCenter appliance) I received a SFTP disabled error. After inv…

---

## [Limit playbook run by role?](https://forum.ansible.com/t/limit-playbook-run-by-role/15074)

<div class="topic-metadata">

**Author:** [@Aaron\_Hunter](https://forum.ansible.com/u/Aaron_Hunter)\
**Replies:** 13\
**Last updated:** [April 28, 2014, 10:58am UTC](https://forum.ansible.com/t/limit-playbook-run-by-role/15074 "2014-04-28T10:58:42Z")

</div>

While testing I often want to limit my run to a specific role. I know limiting can be done by host and by tag but did you ever consider adding a “-r” limit by role option to the ansible-playbook command? Thanks, Aaron

---

## [ec2\_vol repeatability](https://forum.ansible.com/t/ec2-vol-repeatability/15092)

<div class="topic-metadata">

**Author:** [@Scott\_Anderson](https://forum.ansible.com/u/Scott_Anderson)\
**Replies:** 4\
**Last updated:** [April 27, 2014, 10:59pm UTC](https://forum.ansible.com/t/ec2-vol-repeatability/15092 "2014-04-27T22:59:24Z")

</div>

I just ran across the following in the module code while looking to see if it would do exactly this: # Note: this module needs to be made idempotent. Possible solution is to use resource tags with the volumes. # if sta…

---

## [Powering EC2 instances on/off](https://forum.ansible.com/t/powering-ec2-instances-on-off/15058)

<div class="topic-metadata">

**Author:** [@C\_S](https://forum.ansible.com/u/C_S)\
**Replies:** 14\
**Last updated:** [April 26, 2014, 5:33pm UTC](https://forum.ansible.com/t/powering-ec2-instances-on-off/15058 "2014-04-26T17:33:44Z")

</div>

Hi folks, We’re trying to implement a system where we can power environments on and off AWS when they’re not in use. However the ec2 inventory module excludes instances that are not in a running state. It seems like ad…

---

## [put to the galaxy a role which has no dedicated repo](https://forum.ansible.com/t/put-to-the-galaxy-a-role-which-has-no-dedicated-repo/15095)

<div class="topic-metadata">

**Author:** [@Alexey\_Lesovsky](https://forum.ansible.com/u/Alexey_Lesovsky)\
**Replies:** 1\
**Last updated:** [April 26, 2014, 12:31pm UTC](https://forum.ansible.com/t/put-to-the-galaxy-a-role-which-has-no-dedicated-repo/15095 "2014-04-26T12:31:38Z")

</div>

Hi all! I have github repo with several roles. How I can put to the galaxy one of these roles? That even possible?

[Previous page](https://forum.ansible.com/latest.md?page=971)

[Next page](https://forum.ansible.com/latest.md?page=973)
