diff options
-rw-r--r-- | host_vars/lancaster.casperlefantom.net | 1 | ||||
-rw-r--r-- | hosts | 1 | ||||
-rw-r--r-- | roles/common/tasks/yum.yml | 5 | ||||
-rw-r--r-- | roles/torrelay/templates/torrc.j2 | 5 |
4 files changed, 9 insertions, 3 deletions
diff --git a/host_vars/lancaster.casperlefantom.net b/host_vars/lancaster.casperlefantom.net index b1e3bdd..ca967c9 100644 --- a/host_vars/lancaster.casperlefantom.net +++ b/host_vars/lancaster.casperlefantom.net @@ -4,3 +4,4 @@ bpburst: 60 is_public: true is_mail: true is_jabber: true +is_seeks: true @@ -14,7 +14,6 @@ vm03.casperlefantom.net [dns] lancaster.casperlefantom.net ns2.casperlefantom.net -vm02.casperlefantom.net mosquito.casperlefantom.net ns3.casperlefantom.net diff --git a/roles/common/tasks/yum.yml b/roles/common/tasks/yum.yml index f4c10f2..390c567 100644 --- a/roles/common/tasks/yum.yml +++ b/roles/common/tasks/yum.yml @@ -17,17 +17,18 @@ value=0 when: ansible_distribution_version|int >= 20 and ansible_architecture == "x86_64" and ansible_distribution_release != "Rawhide" + or ansible_virtualization_role == "guest" - name: Nombre mini de noyaux installés ini_file: dest=/etc/yum.conf section=main option=installonly_limit value={{ minkernel }} - when: ansible_default_ipv6.address == "2a00:c70:1:178:170:111:194:c0de" + when: ansible_virtualization_role == "guest" - name: Nombre maxi de noyaux installés ini_file: dest=/etc/yum.conf section=main option=installonly_limit value={{ maxkernel }} - when: ansible_default_ipv6.address != "2a00:c70:1:178:170:111:194:c0de" + when: ansible_virtualization_role != "guest" diff --git a/roles/torrelay/templates/torrc.j2 b/roles/torrelay/templates/torrc.j2 index c45af50..c42d471 100644 --- a/roles/torrelay/templates/torrc.j2 +++ b/roles/torrelay/templates/torrc.j2 @@ -28,6 +28,11 @@ HiddenServicePort 5222 127.0.0.1:5222 {% if is_bitcoin is defined %} HiddenServicePort 8333 127.0.0.1:8333 {% endif %} +{% if is_seeks is defined %} +HiddenServiceDir /var/lib/tor/hidden_service2/ +HiddenServicePort 80 127.0.0.1:80 +HiddenServicePort 443 127.0.0.1:443 +{% endif %} {% if is_public is defined %} ORPort {{ orport }} {% if tor_address is defined %} |