Greetings,
I've created a simple playbook that adds some packages to an ubuntu system.
I'm using packer with the ansible provisioner to get things setup but I
keep getting hit with the following error message in verbose mode:
virtualbox-ovf: failed: [127.0.0.1] => (item=apache2,git,php5,php5-gd) => {
"failed": true, "item": "apache2,git,php5,php5-gd", "parsed": false}
virtualbox-ovf: [sudo via ansible, key=nttwhnattzqhpxjrbhcvutsbslalooch]
password:
Just before that error message I do have some success with the key though:
virtualbox-ovf: <127.0.0.1> EXEC /bin/sh -c 'sudo -k && sudo -H -S -p
"[sudo via ansible, key=nttwhnattzqhpxjrbhcvutsbslalooch] password: " -u
root /bin/sh -c '"'"'echo *BECOME-SUCCESS*-nttwhnattzqhpxjrbhcvutsbslalooch;
LANG=C LC_CTYPE=C /usr/bin/python
/home/vagrant/.ansible/tmp/ansible-tmp-1447465858.15-164219871112034/apt;
rm -rf
/home/vagrant/.ansible/tmp/ansible-tmp-1447465858.15-164219871112034/
>/dev/null 2>&1'"'"''
As you can see I'm calling sudo, but I'm still getting the error. I've
tried the new `become` function but still haven't had any success. Has
anyone seen this before?
---
- hosts: all
gather_facts: true
tasks:
- name: 1. Install Web Server Tools
sudo: true
sudo_user: root
apt: name={{item}} state=present
with_items:
- apache2
- git
- php5
- php5-gd
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/0cd65210-9426-49a1-b6da-66fd3001ed78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.