diff --git a/inventories/mkj/host_vars/mkj.northeurope.cloudapp.azure.com b/inventories/mkj/host_vars/mkj.northeurope.cloudapp.azure.com index 103aa76..476e6d7 100644 --- a/inventories/mkj/host_vars/mkj.northeurope.cloudapp.azure.com +++ b/inventories/mkj/host_vars/mkj.northeurope.cloudapp.azure.com @@ -1,14 +1,50 @@ $ANSIBLE_VAULT;1.1;AES256 -62346338346236363065323035343431373133353962656134663430333965326162386434656466 -3966336362353738303039373137343037313234633863650a313631303836376333333364653138 -62343337323762643439636633346238353037333966646435343965633363636632653063333232 -6530383966626265380a353138363665653730353233323531353437643134363861346434343832 -61393632383639343462316237373163663762663930376266646338316339356465343932356230 -63623839396133316137636630336464343035363736653335343033316464636332383435643436 -63356334613836353330633431666464666664333738623637613965343432356530636632343537 -65373034376639393933323166613430393638306265636338323834386530393064326561303165 -39313663353037383533306463643432393038396361613838626361363934336432623030313939 -64343030303731326665393134306134653836656363346530613836333534303437336235313839 -61396332303132316534396230373738656163303132633939376564383764333561616134646633 -66643733653833623434343032623732393039363265653963303765326364653430336533313733 -61663936376666316366313537653134613661343532343435643834666330646536 +39393239396361626563663062623034613864303762616464373461313434666339663539346366 +3934393261613765323038376231656433643563333931340a366563366136396430363163343936 +61323832636564376361336566376133393730383433386662656265343863336536346634313066 +3862393936633333360a633631333630653533306133346265383865313830623735666531346137 +39623064336433386436336465323664626266653664643962303439306665366662333137326264 +39663236633835343032346335653362633531363334653465343338396166313261336462326165 +32366661613931303533306564633538323032313865363735373766343230633063343865653738 +65363862333739373264336539313136393730366131623434393965326436643832323661336138 +39336236646239323135353733353066366565323963333566326264306437376432346538353535 +65613764343562316137396361326631353137633461623130646162366562613663336161643863 +35623738346563393964356536353030646639633131346633646233323235343336666633663666 +65663161636162393136346561623636663464323534396466333234646362393861386332383638 +33306336353435363736653138346436303935303631363836373131346137626263366665636339 +64633738363863366263656164343939333533333430393938643465616633376566333230333664 +34613335353532356137333638383661303935373663653634373165386139316238323865343361 +33616136386665393437343764646163633466643234313733333430396534336661633037623233 +30303863316330386164346132653930333634303437663066383561306263386631303131316138 +38646132613335303065316533633133333635366463343437633132366166393061623264366137 +65366531346137386234353064373762666530383831613539333139303863353737336236323732 +35623862306362303135336634666161333938653438663835393939643063373865643766623430 +36646338353237323733656633636432366333393038376435303162623661613539363531373661 +63373764373235373932343037393862333439323962663263333535653661633133633265303932 +63353065643337393037333966396433653632323863323063633463643466313161616465633133 +33626331626634323037613337616137633739353933316534343635383639616162393632323338 +30303037633034623261353166643864336662393433336264626133646265616436663735326138 +65343063326461373531666437396165356634366432323932323436643930646332376137396136 +64373131636633643639313230326237663664356364343464646634366238386530653463376166 +61663136623835633339343437353064313932303833393566636136303065376138373763633961 +30363430356464663334366538356132363761613536616635616136656464303636323233326262 +33313265643734363436653935303731356637363130326363356235323535343866663163306134 +63623065356637356439643038633065626465613263653264343237613563376530333333386637 +35323866313862333234376538333166616636356266366537333731666131616363373630303266 +38336361323363613431303038383765623936643933646538633364663965646662646531386363 +34613561383739373630393637393962396161383135396230386164633834316636666164353663 +33346432633432316438663138633964666337326163363363333436313665653233626330643431 +38386466623536663139346431386134333737343861383237343262323834626237333132366232 +66383830376464333333396566616563643034393336393863356338653664636466623334306362 +66343136313737653264326264336439343366356333383365353931633861633235336434346334 +38366636303830383363303562383039373261396637613666346631323231666330303832666261 +66316230363735663839663433333135623166373935343964336361623861346565393163323064 +62313566616134386461656666343066636666303331313435663639613662643031383132633564 +35633030386661303262666333363332313365353331623835353664353236666564393963353733 +34623239366462343435366461316463356134633531383630353935376336666364396138396331 +64616138396136666166623239353335306665636230646537323831346134326639376636313862 +63623361643034633862626265336464393065656366656334373232363638396230643037653434 +37323533643965623832363535626133336539666365363635656664336231626139613331646233 +39636264626637323731653535613661613131383835363165613866313565386235346638306136 +61363663646532396361643062623563623864386338626531396230356637643164646334643761 +3533 diff --git a/tasks/deployer.yml b/tasks/deployer.yml index b604770..d3bc9c2 100644 --- a/tasks/deployer.yml +++ b/tasks/deployer.yml @@ -26,7 +26,7 @@ - name: "Deployer - MariaDB - Pull Image" containers.podman.podman_image: - name: docker.io/mariadb + name: docker.io/library/mariadb tag: latest force: on register: deployerTask101 @@ -34,15 +34,15 @@ - name: "Deployer - MariaDB - Run Container" containers.podman.podman_container: name: mariadb - image: docker.io/mariadb:latest + image: docker.io/library/mariadb:latest state: started restart: on network: host volumes: - "/root/mariadb:/var/lib/mysql" - restart_policy: always env: MYSQL_ROOT_PASSWORD: "{{ secrets.mariadb.users.root.password }}" + restart_policy: always register: deployerTask102 when: - (deployerTask101 is defined and deployerTask101.changed) or deployerTask101 is undefined @@ -135,7 +135,7 @@ - name: "Deployer - Nginx - Pull Image" containers.podman.podman_image: - name: docker.io/nginx + name: docker.io/library/nginx tag: latest force: on register: deployerTask3 @@ -143,7 +143,7 @@ - name: "Deployer - Nginx - Run Container" containers.podman.podman_container: name: nginx - image: docker.io/nginx + image: docker.io/library/nginx:latest state: started recreate: on network: host @@ -157,3 +157,38 @@ - (deployerTask3 is defined and deployerTask3.changed) or deployerTask3 is undefined tags: - nginx + +- name: "Deployer - Wordpress - Pull Image" + containers.podman.podman_image: + name: docker.io/library/wordpress + tag: latest + force: on + register: deployerTask4 + +- name: "Deployer - Workpress - Run Container" + containers.podman.podman_container: + name: wordpress + image: docker.io/library/wordpress:latest + state: started + recreate: on + network: host + volumes: + - "/var/www/html/wp-content/:/var/www/html/wp-content/" + env: + WORDPRESS_DB_HOST: "127.0.0.1" + WORDPRESS_DB_USER: "mkj" + WORDPRESS_DB_PASSWORD: "{{ secrets.mariadb.users.mkj.password }}" + WORDPRESS_DB_NAME: "mkj" + WORDPRESS_AUTH_KEY: "{{ secrets.wordpress.keys.auth }}" + WORDPRESS_SECURE_AUTH_KEY: "{{ secrets.wordpress.keys.secure_auth }}" + WORDPRESS_LOGGED_IN_KEY: "{{ secrets.wordpress.keys.logged_in }}" + WORDPRESS_NONCE_KEY: "{{ secrets.wordpress.keys.nonce }}" + WORDPRESS_AUTH_SALT: "{{ secrets.wordpress.salt.auth }}" + WORDPRESS_SECURE_AUTH_SALT: "{{ secrets.wordpress.salt.secure_auth }}" + WORDPRESS_LOGGED_IN_SALT: "{{ secrets.wordpress.salt.logged_in }}" + WORDPRESS_NONCE_SALT: "{{ secrets.wordpress.salt.nonce }}" + restart_policy: always + when: + - (deployerTask4 is defined and deployerTask4.changed) or deployerTask4 is undefined + tags: + - wordpress