Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle warnings #96

Open
8 tasks
tochi-y opened this issue Sep 10, 2019 · 0 comments
Open
8 tasks

Handle warnings #96

tochi-y opened this issue Sep 10, 2019 · 0 comments

Comments

@tochi-y
Copy link
Member

tochi-y commented Sep 10, 2019

There are some warnings in the current 2.0.7 playbook. So it needs to handle them.

The warnings are:

  • sudo
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature will be removed in version 2.9.
Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
  • restart_iptables.yml not found
[DEPRECATION WARNING]: Included file '/root/ansible/handlers/common/restart_iptables.yml' not found, however since this include is not explicitly marked as 'static:
yes', we will try and include it dynamically later. In the future, this will be an error unless 'static: no' is used on the include task. If you do not want missing
includes to be considered dynamic, use 'static: yes' on the include or set the global ansible.cfg options to make all includes static for tasks and/or handlers. This
feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
  • old git version
 [WARNING]: Your git version is too old to fully support the depth argument. Falling back to full checkouts.
  • Invoking "yum" only once while using a loop via squash_actions
[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying
`pkg: "{{ item }}"`, please use `pkg: ['nfs-utils']` 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.
  • jinja2 templating delimiters
 [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: "{{ disklabel }}" not in disk_label.stdout
  • wget
 [WARNING]: Consider using the get_url or uri module rather than running 'wget'.  If you need to use command because get_url or uri is insufficient you can add 'warn:
false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message.
  • /usr/bin/python
 [WARNING]: Platform linux on host 172.18.10.6 is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter
could change this. See https://docs.ansible.com/ansible/2.8/reference_appendices/interpreter_discovery.html for more information.
  • tar
 [WARNING]: Consider using the unarchive module rather than running 'tar'.  If you need to use command because unarchive is insufficient you can add 'warn: false' to
this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message.
@tochi-y tochi-y self-assigned this Sep 10, 2019
@tochi-y tochi-y removed their assignment Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant