Open kx-chen opened 4 years ago
My first guess is that something is being picky about y
vs yes
. Try using full yes
and no
and see if that works for you.
If it doesn't, maybe we have some other kind of skew. Could you run this for me?
$ ansible-config dump --only-changed
ANSIBLE_PIPELINING(/Users/nop/gh/nop-streisand/ansible.cfg) = True
DEFAULT_HOST_LIST(/Users/nop/gh/nop-streisand/ansible.cfg) = [u'/Users/nop/gh/nop-streisand/inventories/inventory']
DEFAULT_LOCAL_TMP(/Users/nop/gh/nop-streisand/ansible.cfg) = /Users/nop/.ansible/tmp/ansible-local-95409ek9gXJ
DEFAULT_MODULE_PATH(/Users/nop/gh/nop-streisand/ansible.cfg) = [u'/Users/nop/gh/nop-streisand/library']
DEFAULT_TIMEOUT(/Users/nop/gh/nop-streisand/ansible.cfg) = 100
HOST_KEY_CHECKING(/Users/nop/gh/nop-streisand/ansible.cfg) = False
$
Thanks, I'll try with using yes
later today and let you know. :)
I was able to get this to work on a DO droplet. My configuration options were slightly different;
I also explicitly used 'yes' and 'no' during any prompt entry. My ansible version is the same as the original poster, but my python version is 2.7.12
I will attempt to spin up another instance to mirror the configuration choices of the initial poster to isolate variables later today.
Streisand install failed on google cloud instance after enabling customization and attempting to enable ad block and OpenVPN. At failure, long pause again at NGINX and then "failed to install."
yes , I have the same problem , install hangs longtime at nginx then failed. I had enable ad block , but no OpenVPN.
so I run again , disabled ad block , and the script works.
hope that problem can be fixed.
according to the ansible error messages , nginx install failed due to temporally dns resolve error , and nameserver was assigned to 127.0.0.1 in /etc/resolv.conf so I add this task in stresiand/playbooks/roles/nginx/task/main.yml it's ugly , but it's working.
- name: replace nameserver in /etc/resolv.conf , or nginx will hang like forever and failed
lineinfile:
path: /etc/resolv.conf
regexp: 'nameserver'
line: 'nameserver 8.8.8.8'
state: present
now , I can run the script with ad-block enabled .
@holderad Ad-blocking is optional and the default is No, that is a good compromise, I think. It worked well with a VPS and I am amazed by and thankful for this feature. Installing Pi-Hole can be a hassle (especially combined with Streisand, I only made it work by de-installing nginx because of conflicts).
@changchichung 's tweak did the trick while installing Streisand with ad-blocking enabled-- I had been racking my brains for an entire day trying to figure out what the exact issue was, to the point of even trying a different VPS.
Expected behavior:
Ad blocking installs properly.
Actual Behavior:
Fails with following error:
Steps to Reproduce:
I used the fresh digital ocean droplet created by streisand and installed with most options default with the exception of adblocking.
Ansible Information
Streisand Information
Enabled Roles