Network Configuration Flashcards

1
Q

Como se usa nmcli module

A
  • name: nix configuration
    nmcli:
    conn_name: ens4-conn
    ifname: ens4
    type: ethernet
    ipv4: 172.25.250.30/24
    gw4:172.25.250.1
    state: present
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Como se cambia el

Hostname

A
  • name:
    hostname:
    name: managedhost1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Como se habilita una regla de firewall http

A
  • name: enabling tule
    firewalld:
    service: http
    permanent: yes
    state: enabled
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Moviendo eth0 a external zone

A
  • name: movie to eth0 a external
    firewalld:
    zone: external
    interfacee: eth0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Como se obtienen los facts de interfaces se red

A

ansible webservers -m setup -a ‘gather_subset=network filter=ansible_interfaces’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Como se obtiene los facts de la tarjeta de red ens4

A

ansible webservers -m setup -a ‘gather_subset=network filter=andible_ens4’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Listado de ansible facts de red

A
ansible_dns
ansible_domain
ansible_all_ipv4_address
ansible_all_ipv6_address
ansible_fqdn
ansible_hostname
ansible_nodename
How well did you know this?
1
Not at all
2
3
4
5
Perfectly