Commit graph

7 commits

Author SHA1 Message Date
6859888e61 [tutorial Ansible 4.2] conditional disabled + hidden
NFS configuration
=================

Need could be activated. In this case, we need to add server domain name

Examples of Ops inventory file
==============================

1/ VALID:

---
env_nfs:
  configure: false

2/ INVALID, configure is false but default:

env_nfs:
  server: another-nfs.silique.fr

3/ VALID:

---
env_nfs:
  configure: true

4/ VALID

env_nfs:
  configure: true
  server: another-nfs.silique.fr
2023-12-18 11:34:36 +01:00
8efd2ea342 [tutorial Ansible 4.1] conditional disabled variable
NFS configuration
=================

Need could be activated. In this case, we need to add server domain name

---
env_nfs:
  configure: true
  server: another-nfs.silique.fr

Examples of Ops inventory file
==============================

1/ INVALID, only with Rougail:

---
env_nfs:
  configure: false
  server: another-nfs.silique.fr

2/ VALID:

---
env_nfs:
  configure: true
2023-12-18 11:34:35 +01:00
a7a2d7150a [tutorial Ansible 4.0] a boolean variable
NFS configuration
=================

Need could be activated. In this case, we need to add server domain name

---
env_nfs:
  configure: true
2023-12-18 11:34:35 +01:00
00a8e0fe00 [tutorial Ansible 2.2] calculed variable
Apero configuration
===================

Get password from an user
2023-12-18 11:34:34 +01:00
6ff4392e2b [tutorial Ansible 1.5] variable is not mandatory
Proxy configuration
===================

The variable env_proxy.no_proxy is not mandatory

Examples of Ops inventory file
==============================

Modify the file: Ops/group_vars/all.yml

1/ VALID:

---
env_proxy:
  host: proxy.example.net
  no_proxy:
    - localhost
    - 192.168.1.1
    - .ac-dijon.fr

2/ VALID:

---
env_proxy:
  host: proxy.example.net
2023-12-18 11:34:32 +01:00
f1a276f3d5 [tutorial Ansible 1.4] a variable with multiple values
Proxy configuration
===================

Add env_proxy.no_proxy for proxy exception

---
env_proxy:
  host: proxy.example.net
  no_proxy:
    - localhost
    - 192.168.1.1
    - .ac-dijon.fr

Examples of Ops inventory file
==============================

1/ INVALID, must be a list:

---
env_proxy:
  host: proxy.example.net
  no_proxy: localhost

2/ INVALID, an integer:

---
env_proxy:
  host: proxy.example.net
  no_proxy:
    - 1

3/ INVALID, without value:

---
env_proxy:
  host: proxy.example.net
2023-12-18 11:34:32 +01:00
d1a9c3321c [tutorial Ansible 1.3] default variable
Proxy configuration
===================

env_proxy.port has a default value
with ansible we needs to define a new mapping variable: env_proxy_all

Examples of Ops inventory file
==============================

1/ VALID:

---
env_proxy:
  host: proxy.example.net

2/ VALID:

---
env_proxy:
  host: proxy.example.net
  port: "3129"
2023-12-18 11:34:31 +01:00