diff --git a/playbooks/whitelist_squid.yml b/playbooks/whitelist_squid.yml index 32e12a5..71d9514 100644 --- a/playbooks/whitelist_squid.yml +++ b/playbooks/whitelist_squid.yml @@ -40,10 +40,10 @@ line: "http://{{ item }}/.*" with_items: - '{{ urls.split(",") }}' - + - name: Reload Squid command: /etc/init.d/squid3 reload - + when: config_jessie.stat.exists - block: @@ -54,16 +54,16 @@ line: "^{{ item }}$" with_items: - '{{ urls.split(",") }}' - + - name: Reload Squid command: /etc/init.d/squid reload - + when: config_stretch.stat.exists - + ## Verify : # Doit plutôt vérifier si c'est "X-Squid-Error: ERR_ACCESS_DENIED" 0 ne bloque ou pas - + # - name: test headers # uri: # url: http://placeholder.stratis.fr/700-394 @@ -73,18 +73,18 @@ # # - debug: # msg: "{{ login.x_squid_error }}" - + # - name: Update successful? - # uri: + # uri: # url: "http://{{ item }}" # method: GET # status_code: 200,301,302,403,404 # with_items: # - "{{ urls.split(',') }}" - + ## Save configuration # - + - name: Evomaintenance shell: "echo '{{ ticket }} whitelist domaine(s) dans squid'|/bin/sh /usr/share/scripts/evomaintenance.sh" diff --git a/test/vagrant.yml b/test/vagrant.yml index b7b02ae..2e80924 100644 --- a/test/vagrant.yml +++ b/test/vagrant.yml @@ -133,7 +133,7 @@ # tasks_from: commit.yml # vars: # commit_message: "Ansible post-run Evolinux playbook" - # + # # - include_role: # name: evocheck # tasks_from: exec.yml