Skip to content
Snippets Groups Projects
Commit 84611602 authored by void's avatar void
Browse files

timestamp aus facts generieren

parent e35d3541
No related branches found
No related tags found
No related merge requests found
......@@ -57,10 +57,6 @@
debug:
msg: "{{gitclone}}"
- name: Get a timestamp
command: "date +%d.%m.%Y"
register: timestamp
- name: Konfig-Datei erstellen
template:
src: "config.ini"
......
......@@ -5,7 +5,7 @@ APPS = warpmain, warpauth, warppay
INSTANCE_NAME = 'INTERN-PRODUKTIV'
GIT_COMMIT = '{{ gitclone.after }}'
DEPLOY_DATE = '{{ timestamp.stdout }}'
DEPLOY_DATE = '{{ ansible_date_time.date }}--{{ ansible_date_time.hour }}-{{ ansible_date_time.minute }}'
[debug]
DEBUG = False
......
......@@ -56,10 +56,6 @@
debug:
msg: "{{gitclone}}"
- name: Get a timestamp
command: "date +%d.%m.%Y"
register: timestamp
- name: Konfig-Datei erstellen
template:
src: "config.ini"
......
......@@ -5,7 +5,7 @@ APPS = warpmain, warpauth, warppay
INSTANCE_NAME = 'INTERN-TEST'
GIT_COMMIT = '{{ gitclone.after }}'
DEPLOY_DATE = '{{ timestamp.stdout }}'
DEPLOY_DATE = '{{ ansible_date_time.date }}--{{ ansible_date_time.hour }}-{{ ansible_date_time.minute }}'
[debug]
DEBUG = True
......
......@@ -14,10 +14,6 @@
src: Dockerfile
dest: /tmp/dokuwiki_docker/Dockerfile
- name: Get a timestamp
command: "date +%Y%m%d%H%M%S"
register: timestamp
- name: Docker Compose Konfig-Datei erstellen
template:
src: "docker-compose.yml"
......
......@@ -5,7 +5,7 @@ services:
app:
build: /tmp/dokuwiki_docker/
image: "dokuwiki-{{ timestamp.stdout }}"
image: "dokuwiki--{{ ansible_date_time.date }}--{{ ansible_date_time.hour }}-{{ ansible_date_time.minute }}-{{ ansible_date_time.second }}"
restart: always
ports:
- 127.0.0.1:42005:80
......
......@@ -57,10 +57,6 @@
debug:
msg: "{{gitclone}}"
- name: Get a timestamp
command: "date +%d.%m.%Y"
register: timestamp
- name: Konfig-Datei erstellen
template:
src: "config.ini"
......
......@@ -5,7 +5,7 @@ APPS = warpmain, warpauth, warpfood
INSTANCE_NAME = 'EXTERN-PRODUKTIV'
GIT_COMMIT = '{{ gitclone.after }}'
DEPLOY_DATE = '{{ timestamp.stdout }}'
DEPLOY_DATE = '{{ ansible_date_time.date }}--{{ ansible_date_time.hour }}-{{ ansible_date_time.minute }}'
[debug]
DEBUG = False
......
......@@ -56,10 +56,6 @@
debug:
msg: "{{gitclone}}"
- name: Get a timestamp
command: "date +%d.%m.%Y"
register: timestamp
- name: Konfig-Datei erstellen
template:
src: "config.ini"
......
......@@ -5,7 +5,7 @@ APPS = warpmain, warpauth, warpfood, warpapi
INSTANCE_NAME = 'EXTERN-TEST'
GIT_COMMIT = '{{ gitclone.after }}'
DEPLOY_DATE = '{{ timestamp.stdout }}'
DEPLOY_DATE = '{{ ansible_date_time.date }}--{{ ansible_date_time.hour }}-{{ ansible_date_time.minute }}'
[debug]
DEBUG = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment