kbariotis / ansible-nodejs-digitalocean

Complete playbook to create and deploy a Node.js application on Digital Ocean.
https://kbariotis.github.io/ansible-nodejs-digitalocean/
MIT License
77 stars 9 forks source link

Fedora 24 no longer available, Papertrail url password protected #31

Open thm-design opened 6 years ago

thm-design commented 6 years ago

Pretty awesome playbook!

The [add repo] task is failing: Only Fedora 26 and 27 are availlable: http://download.opensuse.org/repositories/home:/zhonghuaren/

The [Download Papertrail installer] task is also failing, https://papertrailapp.com/destinations/3937483/setup.sh now has an htpsswrd type authentication popup.

kbariotis commented 6 years ago

Thank you @thm-design! Will look into it pretty soon. Did you end up not using it or got to overcome this issue?

thm-design commented 6 years ago

Hey, yes I am still working my way through. (this is my first try at using Ansible). Here is what I have done according to my usecase.

  1. Using Fedora 26 and commented out papertrail functionality for now

  2. I commented out the SSL functionality, I really wanted this actually but I am trying to run this with subdomains, so something like app.doman.org etc. And "Let's Encrypt" was complaining because the main domain is not set up for SSL

  3. I am on OSX and had to add a local ansible.cfg file in the main folder pointing to a local hosts file as the default files were not working due to permission issues in OSX I believe. I also had to add some stuff to make the git module work. This is what my local ansible.cfg looks like now:

[defaults]
hostfile = hosts
ansible_managed = Please do not change this file directly since it is managed by Ansible and will be overwritten
host_key_checking=false
inventory = hosts

[ssh_connection]
pipelining = True
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null

SSH wasn't working properly for me. Running ssh-add -l returned something like The agent has no identities. I found out since I am using zshell I needed to add the ssh-agent to my plugins in my .zshrc file...

Now the git module is working. And I am just running into some issues with installing npm dependencies for my app. But 99% there!!

Has been a fun adventure exploring Ansible with your playbook, so thanks for publishing this. Don't suppose you have something similar for Ubuntu? I am just a bit nervous using CentOS for a new project when I do not have much experience with it haha.

kbariotis commented 6 years ago

This is amazing! Thank you so much for your feedback. I will try to fix those ASAP and maybe try to make it more robust.