Skip to content

Playbooks to create simple instances of gce centos/apache with load balancing

License

Notifications You must be signed in to change notification settings

AlexCallejas/ansible-gce-apache-lb

Repository files navigation

ansible-gce-apache-lb

Playbooks to create simple instances of gce centos/apache with load balancing

Requirements

Variables

You need to modify the playbooks with the corresponding variables of your GCP account:

  vars:
    service_account_email: _Your_gce_service_account_email_
    credentials_file: _Your_json_credentials_file_
    project_id: _Your_project_id_


    metadata: '{"sshKeys":" _Your_gce_user:_Your_rsa_public_key_ "}'

    remote_user: _Your_gce_user_

Dependencies

These playbooks were successfully tested in Fedora 34 and CentOS 8 Stream with Ansible 2.9 @ 2021.

Example Playbook Run

You need to run the playbook specifying the private key file to connect to the gce instances:

$ ansible-playbook gce-lb-apache.yml --key-file _Your_rsa_private_key_path_

License

All parts of this material are made available under the terms of the MIT License.

Author Information

This playbooks was created in 2018 and updated in 2021 by Alex Callejas, blog rootzilopochtli.com.

About

Playbooks to create simple instances of gce centos/apache with load balancing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published