[ansible] Invoking "yum" only once while using a loop via squash_actions is deprecated. Invoking "yum" only once while using a loop via squash_actions is deprecated. 최근 버전에서 yum과 with_items 함께 못 씀 기존 yum: name: "{{ item }}" state: present with_items: "{{ vars_items }}" 바꾼 후 yum: name: "{{ vars_items }}" state: present Ansible/error 2021.06.14
[ansible] 'chown -R' module (recurse option) [WARNING]: Consider using the file module with owner rather than running 'chown'. If you need to use command because file 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. - name: grant mysql to datadir file: path: /data/mysql owner: mysql group: mysql recurse: yes recurse 옵션 사용 Ansible/error 2021.06.14
[ansible] 'yum clean all' module error [error] Consider using the yum module rather than running 'yum'. If you need to use command because yum is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' inansible.cfg to get rid of this message. 'yum clean all' 지원안함 그냥 커맨드 써야함 Ansible/error 2021.06.14
[ansible] conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. 조건문은 {{ }} 또는 {% %}과(와) 같은 jinja2 템플릿 구분 기호를 포함하지 않아야 한다. 기존 in tasks - include: master.yml when: "{{ master }} == 1" tags: [ 'master' ] 바꾼 후 - include: master.yml when: master == 1 tags: [ 'master' ] Ansible/error 2021.06.14