{"id":8630,"date":"2016-07-26T13:20:02","date_gmt":"2016-07-26T11:20:02","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/"},"modified":"2016-07-26T13:20:02","modified_gmt":"2016-07-26T11:20:02","slug":"getting-started-with-ansible-creating-the-postgresql-instance","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/","title":{"rendered":"Getting started with Ansible \u2013 Creating the PostgreSQL instance"},"content":{"rendered":"<p>In the last three posts we did the <a href=\"http:\/\/dbi-services.com\/blog\/getting-started-with-ansible-preparations\/\" target=\"_blank\" rel=\"noopener\">initial Ansible setup<\/a>, <a href=\"http:\/\/dbi-services.com\/blog\/getting-started-with-ansible-installing-os-packages-creating-groups-and-users\/\" target=\"_blank\" rel=\"noopener\">installed the operating system packages, created the PostgreSQL group and user<\/a> and <a href=\"http:\/\/dbi-services.com\/blog\/getting-started-with-ansible-download-the-postgresql-sources-compile-and-install\/\" target=\"_blank\" rel=\"noopener\">downloaded, compiled and installed the PostgreSQL binaries from source<\/a>. In this post we&#8217;ll look at how we can use Ansible to create our first PostgreSQL instance.<\/p>\n<p><!--more--><\/p>\n<p>As a reminder this is our current playbook:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n[ansible@ansiblecontrol ansible]$ pwd\n\/opt\/ansible\n[ansible@ansiblecontrol ansible]$ cat roles\/postgresqldbserver\/tasks\/main.yml \n---\n- name: Install PostgreSQL dependencies\n  yum: name={{item}} state=present\n  with_items:\n   - gcc\n   - openldap-devel\n   - python-devel\n   - readline-devel\n   - openssl-devel\n   - redhat-lsb\n   - bison\n   - flex\n   - perl-ExtUtils-Embed\n   - zlib-devel\n   - crypto-utils\n   - openssl-devel\n   - pam-devel\n   - libxml2-devel\n   - libxslt-devel\n   - tcl\n   - tcl-devel\n   - openssh-clients\n   - bzip2\n   - net-tools\n   - wget\n   - screen\n   - ksh\n\n- name: Add PostgreSQL operating system group\n  group: name=postgressomegroup state=present\n\n- name: Add PostgreSQL operating system user\n  user: name=postgres comment=\"PostgreSQL binaries owner\" group=postgres\n\n- name: Download the PostgreSQL 9.5.3 sources\n  get_url: url=https:\/\/ftp.postgresql.org\/pub\/source\/v9.5.3\/postgresql-9.5.3.tar.bz2 dest=\/var\/tmp mode=0755\n\n- name: Copy PostgreSQL install script to targets\n  copy: src=install_pg953.sh dest=\/var\/tmp\/install_pg953.sh owner=root group=root mode=\"u=rwx\"\n\n- name: Compile and install PostgreSQL\n  shell: \/var\/tmp\/install_pg953.sh &gt;&gt; \/var\/tmp\/install_pg_log\n  args:\n    executable: \/usr\/bin\/bash\n<\/pre>\n<p>What we need now is an additional task which does the creation of the PostgreSQL cluster on disk. As with the installation from source we&#8217;ll need to do some scripting for this. Here is a very basic script for doing this:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n#!\/usr\/bin\/bash\n\nPGUSER=\"postgres\"\nPGGROUP=\"postgres\"\nDATADIRECTORY=\"\/u02\/pgdata\/PG1\"\nXLOGLOCATION=\"\/u03\/pgdata\/PG1\"\nPGHOME=\"\/u01\/app\/postgres\/product\/95\/db_3\/\"\nPOSTGRESDBPASSWORD=\"postgres\"\n\nmkdir -p ${DATADIRECTORY}\nmkdir -p ${XLOGLOCATION}\nchown ${PGUSER}:${PGGROUP} ${DATADIRECTORY}\nchown ${PGUSER}:${PGGROUP} ${XLOGLOCATION}\n\nsu - ${PGUSER} -c \"echo ${POSTGRESDBPASSWORD} &gt; \/var\/tmp\/tmp_pwd\"\nsu - ${PGUSER} -c \"${PGHOME}\/bin\/initdb -D ${DATADIRECTORY} --pwfile=\/var\/tmp\/tmp_pwd -X ${XLOGLOCATION} -k\"\n\nrm -f \/var\/tmp\/tmp_pwd\n\nsu - ${PGUSER} -c \"${PGHOME}\/bin\/pg_ctl -D ${DATADIRECTORY} start\"\n<\/pre>\n<p>As with the PostgreSQL installation script we&#8217;ll put this into the &#8220;files&#8221; directory of our &#8220;postgresqldbserver&#8221; role:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n[ansible@ansiblecontrol ansible]$ ls roles\/postgresqldbserver\/files\/\ncreate_pg953_cluster.sh  install_pg953.sh\n<\/pre>\n<p>We&#8217;ll use the same logic again and add two new tasks to our existing playbook:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n- name: Copy the PostgreSQL cluster creation script to the targets\n  copy: src=create_pg953_cluster.sh dest=\/var\/tmp\/create_pg953_cluster.sh owner=root group=root mode=\"u=rwx\"\n\n- name: Create and start the PostgreSQL instance\n  shell: \/var\/tmp\/create_pg953_cluster.sh &gt;&gt; \/var\/tmp\/create_pg_cluster.log\n  args:\n    executable: \/usr\/bin\/bash\n<\/pre>\n<p>Once the playbook is executed again:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n[ansible@ansiblecontrol ansible]$ ansible-playbook -i \/opt\/ansible\/development \/opt\/ansible\/roles\/postgresqldbserver\/site.yml\n\nPLAY [postgresql-servers] ******************************************************\n\nTASK [setup] *******************************************************************\nok: [192.168.22.171]\nok: [192.168.22.172]\n\nTASK [postgresqldbserver : Install PostgreSQL dependencies] ********************\nok: [192.168.22.172] =&gt; (item=[u'gcc', u'openldap-devel', u'python-devel', u'readline-devel', u'openssl-devel', u'redhat-lsb', u'bison', u'flex', u'perl-ExtUtils-Embed', u'zlib-devel', u'crypto-utils', u'openssl-devel', u'pam-devel', u'libxml2-devel', u'libxslt-devel', u'tcl', u'tcl-devel', u'openssh-clients', u'bzip2', u'net-tools', u'wget', u'screen', u'ksh'])\nok: [192.168.22.171] =&gt; (item=[u'gcc', u'openldap-devel', u'python-devel', u'readline-devel', u'openssl-devel', u'redhat-lsb', u'bison', u'flex', u'perl-ExtUtils-Embed', u'zlib-devel', u'crypto-utils', u'openssl-devel', u'pam-devel', u'libxml2-devel', u'libxslt-devel', u'tcl', u'tcl-devel', u'openssh-clients', u'bzip2', u'net-tools', u'wget', u'screen', u'ksh'])\n\nTASK [postgresqldbserver : Add PostgreSQL operating system group] **************\nok: [192.168.22.171]\nok: [192.168.22.172]\n\nTASK [postgresqldbserver : Add PostgreSQL operating system user] ***************\nok: [192.168.22.172]\nok: [192.168.22.171]\n\nTASK [postgresqldbserver : Download the PostgreSQL 9.5.3 sources] **************\nok: [192.168.22.172]\nok: [192.168.22.171]\n\nTASK [postgresqldbserver : Copy PostgreSQL install script to targets] **********\nchanged: [192.168.22.171]\nchanged: [192.168.22.172]\n\nTASK [postgresqldbserver : Compile and install PostgreSQL] *********************\nchanged: [192.168.22.172]\nchanged: [192.168.22.171]\n\nTASK [postgresqldbserver : Copy the PostgreSQL cluster creation script to the targets] ***\nok: [192.168.22.171]\nchanged: [192.168.22.172]\n\nTASK [postgresqldbserver : Create and start the PostgreSQL instance] ***********\nchanged: [192.168.22.172]\nchanged: [192.168.22.171]\n\nPLAY RECAP *********************************************************************\n192.168.22.171             : ok=9    changed=3    unreachable=0    failed=0   \n192.168.22.172             : ok=9    changed=4    unreachable=0    failed=0   \n<\/pre>\n<p>&#8230; we should have a running PostgreSQL instance on both nodes, lets check:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n[root@ansiblepg1 tmp]# ps -ef | grep postgres\npostgres 17284     1  0 08:47 ?        00:00:00 \/u01\/app\/postgres\/product\/95\/db_3\/bin\/postgres -D \/u02\/pgdata\/PG1\npostgres 17288 17284  0 08:47 ?        00:00:00 postgres: checkpointer process   \npostgres 17289 17284  0 08:47 ?        00:00:00 postgres: writer process   \npostgres 17290 17284  0 08:47 ?        00:00:00 postgres: wal writer process   \npostgres 17291 17284  0 08:47 ?        00:00:00 postgres: autovacuum launcher process   \npostgres 17292 17284  0 08:47 ?        00:00:00 postgres: stats collector process   \nroot     17294 10223  0 08:47 pts\/1    00:00:00 grep --color=auto postgres\n[root@ansiblepg2 ~]# ps -ef | grep postgres\npostgres 16951     1  0 08:47 ?        00:00:00 \/u01\/app\/postgres\/product\/95\/db_3\/bin\/postgres -D \/u02\/pgdata\/PG1\npostgres 16955 16951  0 08:47 ?        00:00:00 postgres: checkpointer process   \npostgres 16956 16951  0 08:47 ?        00:00:00 postgres: writer process   \npostgres 16957 16951  0 08:47 ?        00:00:00 postgres: wal writer process   \npostgres 16958 16951  0 08:47 ?        00:00:00 postgres: autovacuum launcher process   \npostgres 16959 16951  0 08:47 ?        00:00:00 postgres: stats collector process   \nroot     16985 16964  0 08:48 pts\/0    00:00:00 grep --color=auto postgres\n<\/pre>\n<p>Isn&#8217;t that cool? Sure, there is much hard coding in here which needs to be extended by using <a href=\"http:\/\/docs.ansible.com\/ansible\/playbooks_variables.html\" target=\"_blank\" rel=\"noopener\">variables<\/a>. This is a topic for another post.<\/p>\n<p>For your reference here is the complete playbook:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n[ansible@ansiblecontrol ansible]$ cat \/opt\/ansible\/roles\/postgresqldbserver\/tasks\/main.yml \n---\n- name: Install PostgreSQL dependencies\n  yum: name={{item}} state=present\n  with_items:\n   - gcc\n   - openldap-devel\n   - python-devel\n   - readline-devel\n   - openssl-devel\n   - redhat-lsb\n   - bison\n   - flex\n   - perl-ExtUtils-Embed\n   - zlib-devel\n   - crypto-utils\n   - openssl-devel\n   - pam-devel\n   - libxml2-devel\n   - libxslt-devel\n   - tcl\n   - tcl-devel\n   - openssh-clients\n   - bzip2\n   - net-tools\n   - wget\n   - screen\n   - ksh\n\n- name: Add PostgreSQL operating system group\n  group: name=postgressomegroup state=present\n\n- name: Add PostgreSQL operating system user\n  user: name=postgres comment=\"PostgreSQL binaries owner\" group=postgres\n\n- name: Download the PostgreSQL 9.5.3 sources\n  get_url: url=https:\/\/ftp.postgresql.org\/pub\/source\/v9.5.3\/postgresql-9.5.3.tar.bz2 dest=\/var\/tmp mode=0755\n\n- name: Copy PostgreSQL install script to targets\n  copy: src=install_pg953.sh dest=\/var\/tmp\/install_pg953.sh owner=root group=root mode=\"u=rwx\"\n\n- name: Compile and install PostgreSQL\n  shell: \/var\/tmp\/install_pg953.sh &gt;&gt; \/var\/tmp\/install_pg_log\n  args:\n    executable: \/usr\/bin\/bash\n\n- name: Copy the PostgreSQL cluster creation script to the targets\n  copy: src=create_pg953_cluster.sh dest=\/var\/tmp\/create_pg953_cluster.sh owner=root group=root mode=\"u=rwx\"\n\n- name: Create and start the PostgreSQL instance\n  shell: \/var\/tmp\/create_pg953_cluster.sh &gt;&gt; \/var\/tmp\/create_pg_cluster.log\n  args:\n    executable: \/usr\/bin\/bash\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In the last three posts we did the initial Ansible setup, installed the operating system packages, created the PostgreSQL group and user and downloaded, compiled and installed the PostgreSQL binaries from source. In this post we&#8217;ll look at how we can use Ansible to create our first PostgreSQL instance.<\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229],"tags":[150,77],"type_dbi":[],"class_list":["post-8630","post","type-post","status-publish","format-standard","hentry","category-database-administration-monitoring","tag-ansible","tag-postgresql"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Getting started with Ansible \u2013 Creating the PostgreSQL instance - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting started with Ansible \u2013 Creating the PostgreSQL instance\" \/>\n<meta property=\"og:description\" content=\"In the last three posts we did the initial Ansible setup, installed the operating system packages, created the PostgreSQL group and user and downloaded, compiled and installed the PostgreSQL binaries from source. In this post we&#8217;ll look at how we can use Ansible to create our first PostgreSQL instance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-26T11:20:02+00:00\" \/>\n<meta name=\"author\" content=\"Daniel Westermann\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@westermanndanie\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daniel Westermann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/getting-started-with-ansible-creating-the-postgresql-instance\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/getting-started-with-ansible-creating-the-postgresql-instance\\\/\"},\"author\":{\"name\":\"Daniel Westermann\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/8d08e9bd996a89bd75c0286cbabf3c66\"},\"headline\":\"Getting started with Ansible \u2013 Creating the PostgreSQL instance\",\"datePublished\":\"2016-07-26T11:20:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/getting-started-with-ansible-creating-the-postgresql-instance\\\/\"},\"wordCount\":195,\"commentCount\":0,\"keywords\":[\"Ansible\",\"PostgreSQL\"],\"articleSection\":[\"Database Administration &amp; Monitoring\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/getting-started-with-ansible-creating-the-postgresql-instance\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/getting-started-with-ansible-creating-the-postgresql-instance\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/getting-started-with-ansible-creating-the-postgresql-instance\\\/\",\"name\":\"Getting started with Ansible \u2013 Creating the PostgreSQL instance - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"datePublished\":\"2016-07-26T11:20:02+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/8d08e9bd996a89bd75c0286cbabf3c66\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/getting-started-with-ansible-creating-the-postgresql-instance\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/getting-started-with-ansible-creating-the-postgresql-instance\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/getting-started-with-ansible-creating-the-postgresql-instance\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Getting started with Ansible \u2013 Creating the PostgreSQL instance\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/8d08e9bd996a89bd75c0286cbabf3c66\",\"name\":\"Daniel Westermann\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g\",\"caption\":\"Daniel Westermann\"},\"description\":\"Daniel Westermann is Principal Consultant and Technology Leader Open Infrastructure at dbi services. He has more than 15 years of experience in management, engineering and optimization of databases and infrastructures, especially on Oracle and PostgreSQL. Since the beginning of his career, he has specialized in Oracle Technologies and is Oracle Certified Professional 12c and Oracle Certified Expert RAC\\\/GridInfra. Over time, Daniel has become increasingly interested in open source technologies, becoming \u201cTechnology Leader Open Infrastructure\u201d and PostgreSQL expert. \u00a0Based on community or EnterpriseDB tools, he develops and installs complex high available solutions with PostgreSQL. He is also a certified PostgreSQL Plus 9.0 Professional and a Postgres Advanced Server 9.4 Professional. He is a regular speaker at PostgreSQL conferences in Switzerland and Europe. Today Daniel is also supporting our customers on AWS services such as AWS RDS, database migrations into the cloud, EC2 and automated infrastructure management with AWS SSM (System Manager). He is a certified AWS Solutions Architect Professional. Prior to dbi services, Daniel was Management System Engineer at LC SYSTEMS-Engineering AG in Basel. Before that, he worked as Oracle Developper &amp;\u00a0Project Manager at Delta Energy Solutions AG in Basel (today Powel AG). Daniel holds a diploma in Business Informatics (DHBW, Germany). His branch-related experience mainly covers the pharma industry, the financial sector, energy, lottery and telecommunications.\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/westermanndanie\"],\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/daniel-westermann\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Getting started with Ansible \u2013 Creating the PostgreSQL instance - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/","og_locale":"en_US","og_type":"article","og_title":"Getting started with Ansible \u2013 Creating the PostgreSQL instance","og_description":"In the last three posts we did the initial Ansible setup, installed the operating system packages, created the PostgreSQL group and user and downloaded, compiled and installed the PostgreSQL binaries from source. In this post we&#8217;ll look at how we can use Ansible to create our first PostgreSQL instance.","og_url":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/","og_site_name":"dbi Blog","article_published_time":"2016-07-26T11:20:02+00:00","author":"Daniel Westermann","twitter_card":"summary_large_image","twitter_creator":"@westermanndanie","twitter_misc":{"Written by":"Daniel Westermann","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/"},"author":{"name":"Daniel Westermann","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66"},"headline":"Getting started with Ansible \u2013 Creating the PostgreSQL instance","datePublished":"2016-07-26T11:20:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/"},"wordCount":195,"commentCount":0,"keywords":["Ansible","PostgreSQL"],"articleSection":["Database Administration &amp; Monitoring"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/","url":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/","name":"Getting started with Ansible \u2013 Creating the PostgreSQL instance - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2016-07-26T11:20:02+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/getting-started-with-ansible-creating-the-postgresql-instance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Getting started with Ansible \u2013 Creating the PostgreSQL instance"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66","name":"Daniel Westermann","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g","caption":"Daniel Westermann"},"description":"Daniel Westermann is Principal Consultant and Technology Leader Open Infrastructure at dbi services. He has more than 15 years of experience in management, engineering and optimization of databases and infrastructures, especially on Oracle and PostgreSQL. Since the beginning of his career, he has specialized in Oracle Technologies and is Oracle Certified Professional 12c and Oracle Certified Expert RAC\/GridInfra. Over time, Daniel has become increasingly interested in open source technologies, becoming \u201cTechnology Leader Open Infrastructure\u201d and PostgreSQL expert. \u00a0Based on community or EnterpriseDB tools, he develops and installs complex high available solutions with PostgreSQL. He is also a certified PostgreSQL Plus 9.0 Professional and a Postgres Advanced Server 9.4 Professional. He is a regular speaker at PostgreSQL conferences in Switzerland and Europe. Today Daniel is also supporting our customers on AWS services such as AWS RDS, database migrations into the cloud, EC2 and automated infrastructure management with AWS SSM (System Manager). He is a certified AWS Solutions Architect Professional. Prior to dbi services, Daniel was Management System Engineer at LC SYSTEMS-Engineering AG in Basel. Before that, he worked as Oracle Developper &amp;\u00a0Project Manager at Delta Energy Solutions AG in Basel (today Powel AG). Daniel holds a diploma in Business Informatics (DHBW, Germany). His branch-related experience mainly covers the pharma industry, the financial sector, energy, lottery and telecommunications.","sameAs":["https:\/\/x.com\/westermanndanie"],"url":"https:\/\/www.dbi-services.com\/blog\/author\/daniel-westermann\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/8630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=8630"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/8630\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=8630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=8630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=8630"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=8630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}