summaryrefslogtreecommitdiffstats
path: root/tasks/sysctl.yml
blob: 0f0a9856e14405970d54a0d9748bc26cb53b2a46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- name: Configure network-related sysctl.conf(5).
  sysctl: name={{ item.key }} value={{ item.val }}
          sysctl_file=/etc/sysctl.d/network.conf reload=true
  with_items:
    - { key: net.ipv4.tcp_timestamps,                   val: 0  }
    - { key: net.ipv4.conf.default.accept_source_route, val: 0  }
    - { key: net.ipv4.conf.default.send_redirects,      val: 0  }
    - { key: net.ipv4.conf.all.accept_source_route,     val: 0  }
    - { key: net.ipv4.conf.all.send_redirects,          val: 0  }
    - { key: net.ipv6.conf.default.autoconf,            val: 0  }
    - { key: net.ipv6.conf.default.accept_ra,           val: 0  }
    - { key: net.ipv6.conf.default.accept_ra_defrtr,    val: 0  }
    - { key: net.ipv6.conf.default.accept_ra_rtr_pref,  val: 0  }
    - { key: net.ipv6.conf.default.accept_ra_pinfo,     val: 0  }
    - { key: net.ipv6.conf.default.accept_source_route, val: 0  }
    - { key: net.ipv6.conf.all.autoconf,                val: 0  }
    - { key: net.ipv6.conf.all.accept_ra,               val: 0  }
    - { key: net.ipv6.conf.all.accept_ra_defrtr,        val: 0  }
    - { key: net.ipv6.conf.all.accept_ra_rtr_pref,      val: 0  }
    - { key: net.ipv6.conf.all.accept_ra_pinfo,         val: 0  }
    - { key: net.ipv6.conf.all.accept_source_route,     val: 0  }
    - { key: net.ipv6.conf.all.accept_redirects,        val: 0  }