Debian Codegraph @

ansible_collections/theforeman/foreman/roles/subnets/README.md

raw symbols SCIP
1 theforeman.foreman.subnets
2 ==========================
3
4 This role creates and manages Subnets.
5
6 Role Variables
7 --------------
8
9 This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
10
11 The main data structure for this role is the list of `foreman_subnets`. Each `subnet` requires the following fields:
12
13 - `name`: The name of the subnet.
14 - `network`: Subnet IP address.
15
16 For all other fields see the `subnet` module.
17
18 Example Playbook
19 ----------------
20
21 Create subnet `192.168.0.0/26`:
22
23 ```yaml
24 - hosts: localhost
25 roles:
26 - role: theforeman.foreman.subnets
27 vars:
28 foreman_server_url: https://foreman.example.com
29 foreman_username: "admin"
30 foreman_password: "changeme"
31 foreman_subnets:
32 - name: "My subnet"
33 description: "My description"
34 network: "192.168.0.0"
35 mask: "255.255.255.192"
36 gateway: "192.168.0.1"
37 from_ip: "192.168.0.2"
38 to_ip: "192.168.0.42"
39 boot_mode: "Static"
40 dhcp_proxy: "smart-proxy1.foo.example.com"
41 tftp_proxy: "smart-proxy1.foo.example.com"
42 dns_proxy: "smart-proxy2.foo.example.com"
43 template_proxy: "smart-proxy2.foo.example.com"
44 vlanid: 452
45 mtu: 9000
46 domains:
47 - "foo.example.com"
48 - "bar.example.com"
49 organizations:
50 - "Example Org"
51 locations:
52 - "Uppsala"
53 ```