Skip to content

claretcrab/ansible-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Skeleton

This document contains information on how to deploy projects using Ansible.

Requirements

SSH Keys Authentication

In order to access via SSH from your client server to the production server, you may have to follow these steps:

  • In your client server execute ssh-keygen -t rsa

  • Copy the contents of ~/.ssh/id_rsa.pub into the file ~/.ssh/authorized_keys on the machine to which you want to connect.

  • Change the permissions of the authorized_keys file using the following command chmod 644 ~/.ssh/authorized_keys

Usage

$ ./deploy.sh

Expected output:

PLAY [webservers] *************************************************************

GATHERING FACTS ***************************************************************
ok: [127.0.0.1]

TASK: [deploy code from repository] *******************************************
changed: [127.0.0.1]

TASK: [ensure cache directory] ************************************************
changed: [127.0.0.1]

TASK: [ensure logs directory] *************************************************
changed: [127.0.0.1]

TASK: [run composer install] **************************************************
changed: [127.0.0.1]

PLAY RECAP ********************************************************************
127.0.0.1              : ok=5    changed=4    unreachable=0    failed=0

Enjoy!

About

My skeleton to get started with Ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages