Error/Warning

yum/dnfでskip_broken: trueが効かない

issue:


CryptographyDeprecationWarningの抑制


macOS


RequestsDependencyWarning: urllib3 (x.x.x) or chardet (x.x.x) doesn't match a supported version!


Invoking "yum" only once while using a loop via squash_actions is deprecated

ansible2.0以降の「yum:」「apt:」で「name="{{ list }}"」が指定できるようになった。
with_itemsでループさせない。

[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 `name: {{ item }}`, please use `name: [u'firewalld']` 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.

too long for Unix domain socket

macOS v10.12(Sierra)で発生。 CentOS6/7では発生せず。


Too many open filesでansibleの実行が停止する


to_nice_jsonだと文字列が出力される

to_nice_jsonで出力すると、「"{...}"」のようにダブルクオートが付いて、文字列として出力される。
to_jsonでは「{...}」で問題ない。


to_nice_yaml でエラー


localhost対象時のエラー


error while evaluating conditional


The Python 2 bindings for rpm/yum ...


WARNINGの抑制

  - shell: "rpm -q {{ rpm_name }}"
    args:
      warn: false

Encountered unknown tag

j2テンプレート中で「{% ... %}」を含む文字列を出力したい場合。

{% raw %} ... {% endraw %}

Syntax errors in policy.

"{{ lookup('template', '/path/to/template.json.j2') | string }}"

The security token included in the request is invalid

pip list
...
ansible (2.5.0) 
boto (2.48.0)
boto3 (1.6.17)

group_by: ERROR! Unexpected Exception, this is probably a bug: 'localhost'

-- group_by: key="{{ inventory_group }}"
  tasks:    - name: add hosts to localhost group      add_host:        name: "127.0.0.1"        groups: "localhost"

when statements should not include jinja2 templating delimiters

[WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: ansible_devices.{{ item.src | basename}} is defined
  when: ansible_devices.{{ item.src | basename }} is defined
  when: ansible_devices[ item.src | basename ] is defined

could not locate file in lookup: ~/.ssh/id_rsa.pub

ssh-keygen -N "" -t rsa

to use the 'ssh' connection type with passwords, you must install the sshpass program


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2024-01-26 (金) 16:47:51