Skip to content

Ansible: Use errors="ignore" instead of skip

Another Ansible upgrade deprecation warning, which appears in Ansible 2.8:

TASK [send email] *************************************************************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Use errors="ignore" instead of skip. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

Found so many in the last time that I added a new Tag: Deprecation.

 

Continue reading "Ansible: Use errors="ignore" instead of skip"
  • Twitter
  • Bookmark Ansible: Use errors="ignore" instead of skip at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Ansible: Use errors="ignore" instead of skip
  • Bloglines Ansible: Use errors="ignore" instead of skip
  • Technorati Ansible: Use errors="ignore" instead of skip
  • Fark this: Ansible: Use errors="ignore" instead of skip
  • Bookmark Ansible: Use errors="ignore" instead of skip at YahooMyWeb
  • Bookmark Ansible: Use errors="ignore" instead of skip at Furl.net
  • Bookmark Ansible: Use errors="ignore" instead of skip at reddit.com
  • Bookmark Ansible: Use errors="ignore" instead of skip at blinklist.com
  • Bookmark Ansible: Use errors="ignore" instead of skip at Spurl.net
  • Bookmark Ansible: Use errors="ignore" instead of skip at Simpy.com
  • Bookmark Ansible: Use errors="ignore" instead of skip at blogmarks
  • Bookmark Ansible: Use errors="ignore" instead of skip with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

_ansible_item_label changes in Ansible 2.8

The Ansible 2.8 upgrade brought a few failing Playbooks. I ran into the following error:

TASK [Demo Task] ************************************************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute '_ansible_item_label'\n\nThe error appears to be in '/path/to/ansible/playbook.yml': line 76, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - name: Demo Task\n    ^ here\n"}

Well, seems like another upgrade with another major change. Don't you like that?

 

Continue reading "_ansible_item_label changes in Ansible 2.8"
  • Twitter
  • Bookmark _ansible_item_label changes in Ansible 2.8 at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg _ansible_item_label changes in Ansible 2.8
  • Bloglines _ansible_item_label changes in Ansible 2.8
  • Technorati _ansible_item_label changes in Ansible 2.8
  • Fark this: _ansible_item_label changes in Ansible 2.8
  • Bookmark _ansible_item_label changes in Ansible 2.8 at YahooMyWeb
  • Bookmark _ansible_item_label changes in Ansible 2.8 at Furl.net
  • Bookmark _ansible_item_label changes in Ansible 2.8 at reddit.com
  • Bookmark _ansible_item_label changes in Ansible 2.8 at blinklist.com
  • Bookmark _ansible_item_label changes in Ansible 2.8 at Spurl.net
  • Bookmark _ansible_item_label changes in Ansible 2.8 at Simpy.com
  • Bookmark _ansible_item_label changes in Ansible 2.8 at blogmarks
  • Bookmark _ansible_item_label changes in Ansible 2.8 with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning

After upgrading Ansible to version 2.8.3, the following deprecation warning appeared many times:

[DEPRECATION WARNING]: The TRANSFORM_INVALID_GROUP_CHARS settings is set to allow bad characters in group names by default, this will change, but still be user configurable on deprecation. This feature will be removed in version 2.10. Deprecation warnings can be 
disabled by setting deprecation_warnings=False in ansible.cfg.
 [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details

Wow, previously valid names in my hosts.cfg file are soon invalid? What's going on here?

 

Continue reading "Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning"
  • Twitter
  • Bookmark Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning
  • Bloglines Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning
  • Technorati Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning
  • Fark this: Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning
  • Bookmark Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning at YahooMyWeb
  • Bookmark Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning at Furl.net
  • Bookmark Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning at reddit.com
  • Bookmark Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning at blinklist.com
  • Bookmark Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning at Spurl.net
  • Bookmark Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning at Simpy.com
  • Bookmark Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning at blogmarks
  • Bookmark Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Ansible: "apt" module and loops

After upgrading Ansible to version 2.8.3, the "apt" module started spitting out deprecation warnings:

TASK [common : basic packages] ***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: "{{ item }}"`, please use `name: ['vim', 'screen', 'rsync']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [hostname] => (item=['vim', 'screen', 'rsync'])

 

 

Continue reading "Ansible: "apt" module and loops"
  • Twitter
  • Bookmark Ansible: "apt" module and loops at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Ansible: "apt" module and loops
  • Bloglines Ansible: "apt" module and loops
  • Technorati Ansible: "apt" module and loops
  • Fark this: Ansible: "apt" module and loops
  • Bookmark Ansible: "apt" module and loops at YahooMyWeb
  • Bookmark Ansible: "apt" module and loops at Furl.net
  • Bookmark Ansible: "apt" module and loops at reddit.com
  • Bookmark Ansible: "apt" module and loops at blinklist.com
  • Bookmark Ansible: "apt" module and loops at Spurl.net
  • Bookmark Ansible: "apt" module and loops at Simpy.com
  • Bookmark Ansible: "apt" module and loops at blogmarks
  • Bookmark Ansible: "apt" module and loops with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca