ideascube / ansiblecube

Ansible playbook to quickly deploy an ideascube server and much more !
MIT License
5 stars 9 forks source link

deprecation warning #98

Closed gui1117 closed 7 years ago

gui1117 commented 7 years ago

I've got a deprecation warning. but it looks like it end correctly. Is this the correct behavior ?

TASK [package_management : Install, upgrade or remove a package present in device_list
[DEPRECATION WARNING]: Skipping task due to undefined Error, in the future this
 will be a fatal error.: 'dict object' has no attribute 'device_list'.
 This 
 feature will be removed in a future release. Deprecation warnings can be 
 disabled by setting deprecation_warnings=False in ansible.cfg.
 fatal: [localhost]: FAILED! => {"failed": true, "msg": "the field 'args' has an invali undefined\n\nThe error appears to have been in '/var/lib/ansible/local/roles/package_ng on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Inst

 NO MORE HOSTS LEFT *************************************************************

 RUNNING HANDLER [nginx : restart nginx] ****************************************

 RUNNING HANDLER [uwsgi : restart uwsgi] ****************************************

 RUNNING HANDLER [kiwix : restart kiwix] ****************************************
    to retry, use: --limit @/var/lib/ansible/local/main.retry

    PLAY RECAP *********************************************************************
    localhost                  : ok=113  changed=32   unreachable=0    failed=1   

    STDERR: sudo: unable to resolve host pibox
    sudo shutdown 0
    STDERR: Shutdown scheduled for Tue 2017-05-16 15:44:20 CEST, use 'shutdown -c' to canc

champ msg avec la mise en forme:

the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'item' is undefined

The error appears to have been in '/var/lib/ansible/local/roles/package_management/tasks/main.yml': line 11, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Install, upgrade or remove a package present in device_list.fact
  ^ here

(ansible version 2.1.2) (ansiblecube commit c5faab2cf20e7d424a1d12994c9236951c23b564 voir https://github.com/thiolliere/ansiblecube/tree/oneUpdateFile)

fheslouin commented 7 years ago

Did you update your JSON schema from device_list ?

gui1117 commented 7 years ago

Ah sorry, I made a mistake and didn't write device_list.fact at the right place.