Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 18.227.89.169
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/ansible_collections/theforeman/foreman/roles/subnets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/lib/python3/dist-packages/ansible_collections/theforeman/foreman/roles/subnets/README.md
theforeman.foreman.subnets
==========================

This role creates and manages Subnets.

Role Variables
--------------

This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).

The main data structure for this role is the list of `foreman_subnets`. Each `subnet` requires the following fields:

- `name`: The name of the subnet.
- `network`: Subnet IP address.

For all other fields see the `subnet` module.

Example Playbook
----------------

Create subnet `192.168.0.0/26`:

```yaml
- hosts: localhost
  roles:
    - role: theforeman.foreman.subnets
      vars:
        foreman_server_url: https://foreman.example.com
        foreman_username: "admin"
        foreman_password: "changeme"
        foreman_subnets:
          - name: "My subnet"
            description: "My description"
            network: "192.168.0.0"
            mask: "255.255.255.192"
            gateway: "192.168.0.1"
            from_ip: "192.168.0.2"
            to_ip: "192.168.0.42"
            boot_mode: "Static"
            dhcp_proxy: "smart-proxy1.foo.example.com"
            tftp_proxy: "smart-proxy1.foo.example.com"
            dns_proxy: "smart-proxy2.foo.example.com"
            template_proxy: "smart-proxy2.foo.example.com"
            vlanid: 452
            mtu: 9000
            domains:
            - "foo.example.com"
            - "bar.example.com"
            organizations:
            - "Example Org"
            locations:
            - "Uppsala"
```

Anon7 - 2022
AnonSec Team