Skip to content

Instantly share code, notes, and snippets.

@mherkender
Created July 1, 2012 02:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mherkender/3026572 to your computer and use it in GitHub Desktop.
Save mherkender/3026572 to your computer and use it in GitHub Desktop.
Why ansible sucks
max@darmani% ansible-playbook -k -i ansible.hosts nabooru.ansible.yml
SSH password:
PLAY [nabooru] ****************************
SETUP PHASE ****************************
ok: [192.168.1.133]
TASK: [install nginx] *********
ok: [192.168.1.133] => apt pkg=nginx state=installed
TASK: [configure nginx] *********
ok: [192.168.1.133] => template src=/var/tmp/ansible.WFoHkW/source dest=/etc/nginx/nginx.conf
TASK: [ensure nginx is running] *********
fatal: [192.168.1.133] => failed to parse: {"failed": 1, "rc": 1}
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1
configuration file /etc/nginx/nginx.conf test failed
/{"failed": 1, "rc": 1}
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1
configuration file /etc/nginx/nginx.conf test failed
/service name=nginx state=running
fatal: [192.168.1.133] => failed to parse: {"failed": 1, "rc": 1}
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1
configuration file /etc/nginx/nginx.conf test failed
/{"failed": 1, "rc": 1}
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1
configuration file /etc/nginx/nginx.conf test failed
/service name=nginx state=running
NOTIFIED: [restart nginx] **********
fatal: [192.168.1.133] => failed to parse: {"failed": 1, "rc": 1}
Stopping nginx: nginx.
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1
configuration file /etc/nginx/nginx.conf test failed
/{"failed": 1, "rc": 1}
Stopping nginx: nginx.
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1
configuration file /etc/nginx/nginx.conf test failed
/service name=nginx state=restarted
fatal: [192.168.1.133] => failed to parse: {"failed": 1, "rc": 1}
Stopping nginx: nginx.
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1
configuration file /etc/nginx/nginx.conf test failed
/{"failed": 1, "rc": 1}
Stopping nginx: nginx.
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1
configuration file /etc/nginx/nginx.conf test failed
/service name=nginx state=restarted
PLAY RECAP **********************
192.168.1.133 : ok= 3 changed= 2 unreachable= 2 failed= 0
@mpdehaan
Copy link

mpdehaan commented Aug 7, 2012

this seems to be more of a commentary on how the service module had a bug in it that needed to be reported :)

@prrraveen
Copy link

totally, It required python 2 to work on server. Ubuntu 16 and above doesn't ship python 2. So you need to ssh into the server and apt update and install python 2.

Then the pip module will only install python 2 package. but your whole app is on python 3. It a complete mess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment