ansible 2.0.1.0 don't work --start-at-task

17 views
Skip to first unread message

Artem Feofanov

unread,
Mar 22, 2016, 11:37:23 AM3/22/16
to Ansible Project
Hi, i have a problem with --start-at-task  in ansible 2.0.1.0

playbook front.yml

---
- hosts: all
  become
: yes
  remote_user
: vagrant
  gather_facts
: no

  tasks
:
 
- name: "one"
    apt_repository
: repo='ppa:nginx/development'

 
- name: "two"
    action
: apt pkg={{ item }} state=installed
    with_items
:
   
- nginx-extras
   
- php5
   
- libapache2-mod-php5
   
- libapache2-mod-rpaf
   
- php5-cli
   
- php5-curl
   
- php5-dev
   
- php5-gd
   
- php-pear
   
- php5-gmp
   
- php5-imagick
   
- php5-mcrypt
   
- php5-memcache
   
- php5-memcached
   
- php5-mysqlnd
   
- php5-xcache
   
- php5-xmlrpc
   
- php5-xsl
   
- apache2
   
- memcached
   
- imagemagick
   
- luarocks


 
- name: "three"
    file
: path=/vagrant/www state=directory

 
- name: "four"
    file
: path=/var/www state=absent

 
- name: "five"
    file
: src=/vagrant/www dest=/var/www state=link

 
- name: "six"
    file
: path=/etc/nginx state=absent

 
- name: "seven"
    file
: path=/etc/nginx state=directory

 
- name: "eight"
    command
: luarocks install lua-cjson


ansible-playbook -i hosts front.yml --start-at-task='two' -kK

SSH password:
SUDO password
[defaults to SSH password]:

PLAY
***************************************************************************


PLAY RECAP
*********************************************************************

ansible-playbook -i hosts front.yml --start-at-task='six' -kK

SSH password:
SUDO password[defaults to SSH password]:

PLAY ***************************************************************************


PLAY RECAP *********************************************************************



But, when start play from first task all ok
 
ansible-playbook -i hosts front.yml --start-at-task='one' -kK


SSH password:
SUDO password[defaults to SSH password]:

PLAY ***************************************************************************

TASK [one] *********************************************************************
ok: [192.168.111.113]

TASK [two] *********************************************************************
ok: [192.168.111.113] => (item=[u'nginx-extras', u'php5', u'libapache2-mod-php5', u'libapache2-mod-rpaf', u'php5-cli', u'php5-curl', u'php5-dev', u'php5-gd', u'php-pear', u'php5-gmp', u'php5-imagick', u'php5-mcrypt', u'php5-memcache', u'php5-memcached', u'php5-mysqlnd', u'php5-xcache', u'php5-xmlrpc', u'php5-xsl', u'apache2', u'memcached', u'imagemagick', u'luarocks'])

TASK [three] *******************************************************************
ok: [192.168.111.113]

TASK [four] ********************************************************************
changed: [192.168.111.113]

TASK [five] ********************************************************************
changed: [192.168.111.113]

TASK [six] *********************************************************************
changed: [192.168.111.113]

TASK [seven] *******************************************************************
changed: [192.168.111.113]

TASK [eight] *******************************************************************
changed: [192.168.111.113]

PLAY RECAP *********************************************************************
192.168.111.113            : ok=8    changed=5    unreachable=0    failed=0


Thanks

Reply all
Reply to author
Forward
0 new messages