mainehost.blogg.se

Ansible install mongodb centos
Ansible install mongodb centos










ansible install mongodb centos
  1. #Ansible install mongodb centos update
  2. #Ansible install mongodb centos download

  • A new self signed certificate key pair will be generated for mydomain.PHP 7.4 is the latest stable release of PHP.
  • All paths, log names and references of nginx.local with be replaced with file.
  • The /etc/nginx/conf.d/ will be moved to /etc/nginx/conf.d/.
  • If SITE_NAME has been exported to a value other than nginx.local, then the playbook will use the value of SITE_NAME.
  • If a certificate already exists for nginx.local, it will detect the existing cert and skip the cert generation step as well.
  • ansible install mongodb centos

    If SITE_NAME has not been set, or is still set to nginx.local, then the reconfig playbook will simply generate a self signed certificate for the nginx.local domain and restart the nginx process, skipping all other major steps in the playbook.This playbook will perform the following tasks: In order to either create a self signed certificate for nginx.local or reconfigure the server to use a different domain besides nginx.local, then use the following to execute this playbook.Ĭd /etc/ansible/roles/clusterfrak.nginx/filesįor this example we will assume we have already ran the following "export SITE_NAME=" on your nginx host

    ansible install mongodb centos

  • All log paths, log locations, etc will reference nginx.local in the nginx config.
  • Create a /etc/nginx/conf.d/ nginx config file.
  • Create a /var/www/html/nginx.local directory.
  • Installing this role with the default values will do the following: If the role was installed with the default values, and you would like to reconfigure the server to instead use a custom site, then this playbook will do exactly that. The nginx-reconfig.yml file is a playbook that will reconfigure a nginx install that has occurred using this role, with the default values set. etc/ansible/roles/clusterfrak.nginx/files/nginx-reconfig.yml: The role will go through the entire process of installing and configuring nginx.ġ. Now that we have a playbook that references the role that we downloaded from ansible galaxy, simply run the role. Once downloaded we need to create a simple playbook that will execute the role installation.

    #Ansible install mongodb centos download

    Running ansible-galaxy install command will simply go to the galaxy and download the newest version of the role. Running the ansible-galaxy install clusterfrak.nginx action will automatically download the role into /etc/ansible/roles/clusterfrak.nginxĢ. Now that we have the server set up to run ansible playbooks and roles, we need to download the newest version of the role from the ansible galaxy. To set a variable value simply export the variable prior to running the role install playbook.ġ. SSL_DIR - Location that nginx will store any generated certificates.SITE_NAME - Site that nginx will set up a default server instance for.STATUS_PORT - Port nginx will use to serve web server stats.HTTPS_PORT - Port nginx will listen on for https connections.HTTP_PORT - Port nginx will listen on for http connections.

    ansible install mongodb centos

    In order to customize the installation of Nginx, simply export the ansible corresponding shell variable to set the value to something other than default prior to installing the role. If no shell environment variable is available or set, then ansible will configure itself to use the default values. Ansible will attempt to gather shell environment variable values and use those values to over-ride the default values that are set. The role is set with default values for each of the available variables. The clusterfrak.nginx role uses a few environment variables to automatically configure Nginx. Set Ansible localhost entry so that ansible knows it will run against localhost and can talk to itself on localhost without attempting to open a TCP socket connection.Įcho localhost ansible_connection=local > /etc/ansible/hosts In this tutorial we are going to set up ansible roles in /etc/ansible/roles Sudo apt-get install -y curl vim python python-dev python-openssl libffi-dev libssl-dev gccĬreate the directory structure that you are going to use.

    #Ansible install mongodb centos update

    RedHat based distros (RHEL, CentOS, AL): sudo yum -y install epel-releaseĭebian based distros (Debian, Ubuntu): sudo apt-get update












    Ansible install mongodb centos