INT 21h

Hi, I am Vladimir Smagin, SysAdmin, DevOps and barely good guy. Telegram Email / GIT / Микроблог / Thingiverse / GPG

Ansible: redefining default variables

№ 9131 В разделе "Администрирование" от 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
  set_fact: 
    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 *

*

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

# 2019-06-06 09:47:42

Подборка материалов по Go gist.github.com/egorsmkv/9df2a

# 2019-06-06 09:47:41

Modules для Terraform modules.tf

# 2019-06-06 09:47:38

Как прикрутить oauth2 авторизацию к сайтам, где авторизация не была предусмотрена совсем akomljen.com/protect-kubernete


© Vladimir Smagin, 2005-2019. Копирование материалов без разрешения запрещено. GPG DA4CD0F5E222EA727D6A40C413BCE12E5618F071 *
Яндекс.Метрика

Fortune cookie: But these pills can't be habit forming; I've been taking them for years.