phred / 5minbootstrap Goto Github PK
View Code? Open in Web Editor NEWBootstrap and secure your server in 5 minutes flat.
Bootstrap and secure your server in 5 minutes flat.
I get this when I run
ansible-playbook -i hosts.ini bootstrap.yml --ask-pass --sudo
I'm trying to do this on a brand new box with only a root login.
It looks like your bootstrap would try to login as yourself (phred, or in my case crucial)
but I tried this in my /etc/ansible/hosts
166.78.1.2 ansible_ssh_user=root
and either way its getting rejected
fatal: [166.78.1.2] => {'msg': 'FAILED: Authentication failed.', 'failed': True}
and I can see the auth.log showing the rejection:
Mar 6 17:11:32 localhost sshd[3712]: Connection closed by 77.12.236.94 [preauth]
do you have any idea what might be going on ? You said you tested it on vagrant.
thanks for posting this !
Hi,
I am pulling this back! Thanks! The playbook is amazing!
defined in bootstrap.yml?
ubuntu_release: lucid
logwatch_email: [email protected]
deploy_password:
It is not mentioned in the README, but it seems like I should.
TASK: [Update all packages on the system] *********************
failed: [127.0.0.1] => {"failed": true}
msg: unsupported parameter for module: upgrade
FATAL: all hosts have already failed -- aborting
I followed your guide and I get that error when I run it for the first time. I'm running it against a Vagrant box (precise32) using ansible 1.0. It's my first time using ansible so I'm not really sure what it's trying to tell me. upgrade=yes
seems to be the correct param?
Below console output:
{"cmd": "apt-get update && apt-get install python-apt -y -q", "failed": true, "rc": 100}
stderr: W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://archive.ubuntu.com trusty-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://security.ubuntu.com trusty-security Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://archive.canonical.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
E: There are problems and -y was used without --force-yes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.