Sha256: e7b83bdae9ae230f5070a0e32f965e6e3c5385891d4a8cb5c031a7498d892280

Contents?: true

Size: 529 Bytes

Versions: 6

Compression:

Stored size: 529 Bytes

Contents

---

- name: Ensure file exists
  file:
    path: "{{ environment_file }}"
    owner: "{{ environment_file_owner }}"
    group: "{{ environment_file_group }}"
    state: touch

- name: Remove previous values
  lineinfile:
    dest: "{{ environment_file }}"
    regexp: '^{{ item.key | upper }}'
    state: absent
  with_dict: "{{ environment_config }}"

- name: Configuring environment
  lineinfile:
    dest: "{{ environment_file }}"
    line: "{{ item.key | upper }}='{{ item.value }}'"
  with_dict: "{{ environment_config }}"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
abrizer-0.6.0 ansible/roles/franklinkim.environment/tasks/config.yml
abrizer-0.5.0 ansible/roles/franklinkim.environment/tasks/config.yml
abrizer-0.4.0 ansible/roles/franklinkim.environment/tasks/config.yml
abrizer-0.3.0 ansible/roles/franklinkim.environment/tasks/config.yml
abrizer-0.2.0 ansible/roles/franklinkim.environment/tasks/config.yml
abrizer-0.1.0 ansible/roles/franklinkim.environment/tasks/config.yml