INT 21h

Hi, I am Vladimir Smagin, SysAdmin and Kaptain. Telegram Email / GIT / RSS / GPG

Ansible: redefining default variables

№ 9131 В разделе Sysadmin от August 23rd, 2018,
В подшивках:

Variable kube_resolv_conf was defined as default value, but in deploying process you need to change it depend on your OS.

- name: Check OS type and version before resolv.conf location definition
    kube_resolv_conf: '/run/systemd/resolve/resolv.conf'
  when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'bionic'

ansible_distribution and ansible_distribution_release is a magic variables, defined after gathering facts about target host.

Нет комментариев »

Leave a Reply

Your email address will not be published. Required fields are marked *


Облачная платформа

Микроблог перейти

🇷🇺 © Vladimir Smagin, 2005-2023. Копирование материалов без разрешения запрещено. GPG *

Fortune cookie: Spam del giorno: Fw: Re: Prima esperienza di striptease e poi sesso trovi qui