- name: Install artifactory context.xml file
  template:
    src="{{ artifactory_xml_template }}"
    dest="{{ artifactory_xml }}"
    owner=root
    group=wheel
    mode=644
  tags:
    - config
    - setup

- name: Install access context.xml file
  template:
    src="{{ access_xml_file }}"
    dest="{{ access_xml }}"
    owner=root
    group=wheel
    mode=644
  tags:
    - config
    - setup

- name: Install artifactory db.properties file
  template:
    src="{{ artifactory_db_properties_template }}"
    dest="{{ artifactory_db_properties }}"
    owner=root
    group=wheel
    mode=644
  tags:
    - config
    - setup

- name: Install access db.properties file
  template:
    src="{{ access_db_properties_template }}"
    dest="{{ access_db_properties }}"
    owner=root
    group=wheel
    mode=644
  tags:
    - config
    - setup

- name: Install artifactory.war into webapps dir
  copy:
    src: "{{ artifactory_install_war }}"
    dest: "{{ artifactory_deploy_war }}"
    remote_src: yes
  tags:
    - config
    - setup

- name: Install access.war into webapps dir
  copy:
    src: "{{ access_install_war }}"
    dest: "{{ access_deploy_war }}"
    remote_src: yes
  tags:
    - config
    - setup


- name: Install artifactory context.xml file
  template:
    src="{{ artifactory_xml_template }}"
    dest="{{ artifactory_xml }}"
    owner=root
    group=wheel
    mode=644
  tags:
    - config
    - setup

- name: Install access context.xml file
  copy:
    src="{{ access_xml_file }}"
    dest="{{ access_xml }}"
    owner=root
    group=wheel
    mode=644
  tags:
    - config
    - setup

- name: Install artifactory db.properties file
  template:
    src="{{ artifactory_db_properties_template }}"
    dest="{{ artifactory_db_properties }}"
    owner=root
    group=wheel
    mode=644
  tags:
    - config
    - setup

- name: Install access db.properties file
  template:
    src="{{ access_db_properties_template }}"
    dest="{{ access_db_properties }}"
    owner=root
    group=wheel
    mode=644
  tags:
    - config
    - setup

- name: Install artifactory.war into webapps dir
  copy:
    src: "{{ artifactory_install_war }}"
    dest: "{{ artifactory_deploy_war }}"
    remote_src: yes
  tags:
    - config
    - setup

- name: Install access.war into webapps dir
  copy:
    src: "{{ access_install_war }}"
    dest: "{{ access_deploy_war }}"
    remote_src: yes
  tags:
    - config
    - setup


Change access.xml to copy from template
Change access.xml to copy from template
