diff --git a/docs/source/prod-node-setup-mgmt/overview.md b/docs/source/prod-node-setup-mgmt/overview.md index bea41b51..b592dd6e 100644 --- a/docs/source/prod-node-setup-mgmt/overview.md +++ b/docs/source/prod-node-setup-mgmt/overview.md @@ -9,7 +9,7 @@ Deploying and managing a production BigchainDB node is much more involved than w Thankfully, there are tools that can help (e.g. provisioning tools and configuration management tools). You can use whatever tools you prefer. -As an example, we provide documentation and code showing how to use Terraform and Ansible (together). +As an example, we provide documentation and code showing how to use Terraform and Ansible (together). We use: * [Terraform](https://www.terraform.io/) to provision infrastructure such as AWS instances, storage and security groups * [Ansible](https://www.ansible.com/) to manage the software installed on that infrastructure (configuration management) diff --git a/ntools/one-m/ansible/roles/common/tasks/main.yml b/ntools/one-m/ansible/roles/common/tasks/main.yml new file mode 100644 index 00000000..8a8786b5 --- /dev/null +++ b/ntools/one-m/ansible/roles/common/tasks/main.yml @@ -0,0 +1,31 @@ +--- +# ansible/roles/common/tasks/main.yml + +- name: Do the equivalent of apt-get update + apt: update_cache=yes + +- name: Uninstall ntpdate (deprecated) + apt: name=ntpdate state=absent + tags: ntp + +- name: Update all installed packages to their latest versions + apt: upgrade=dist + +- name: Install ntp + apt: name=ntp state=latest update_cache=yes + tags: ntp + +#- name: Configure ntp file +# template: src=ntp.conf.j2 dest=/etc/ntp.conf +# tags: ntp + # "restart ntp" is the name of a handler (in common/handlers/main.yml) +# notify: restart ntp + +- name: Start the ntp service + service: name=ntpd state=started enabled=yes + tags: ntp + +#- name: test to see if selinux is running +# command: getenforce +# register: sestatus +# changed_when: false