Skip to content
Snippets Groups Projects
Commit 733bc56b authored by jurgenhaas's avatar jurgenhaas
Browse files

Update to Ansible 2.2.1.0 and adjust all file mode settings to provide them as strings

parent f6a816b4
No related branches found
No related tags found
No related merge requests found
......@@ -6,21 +6,21 @@
dest=/opt/{{item}}
owner=root
group=root
mode=755
mode='755'
with_items:
- cadmin_list_databases.sh
- cadmin_list_databases.sql
- sqlplus.sh
- name: Oracle Backup | Create Directory
file: dest=/var/backups/oracle state=directory mode=755
file: dest=/var/backups/oracle state=directory mode='755'
- name: Oracle Backups | copy files
copy: src={{item}}
dest=/var/backups/oracle/{{item}}
owner=root
group=root
mode=755
mode='755'
with_items:
- backup.sh
......@@ -29,19 +29,19 @@
dest=/var/backups/oracle/{{item}}
owner=root
group=root
mode=755
mode='755'
with_items:
- backupall.sh
- name: Oracle Reset Demo | Create Directory
file: dest=/opt/demo_reset state=directory mode=755
file: dest=/opt/demo_reset state=directory mode='755'
- name: Oracle Reset Demo | copy user specific executable file
template: src=demo_reset.sh
dest=/opt/demo_reset/{{item.user}}_reset.sh
owner=root
group=root
mode=755
mode='755'
with_items: '{{ oracle_demo_reset_items }}'
- name: Oracle Reset Demo | copy user specific sql file
......@@ -49,7 +49,7 @@
dest=/opt/demo_reset/{{item.user}}_drop_create.sql
owner=root
group=root
mode=755
mode='755'
with_items: '{{ oracle_demo_reset_items }}'
- name: Oracle Reset Demo | copy Sql files
......@@ -57,7 +57,7 @@
dest=/opt/demo_reset/{{item.user}}.dmp
owner=root
group=root
mode=644
mode='644'
with_items: '{{ oracle_demo_reset_items }}'
- name: Oracle Reset Demo | copy general Sql files
......@@ -65,7 +65,7 @@
dest=/opt/demo_reset/{{item}}
owner=root
group=root
mode=644
mode='644'
with_items:
- demo_reset.sql
......
......@@ -22,14 +22,14 @@
dest=/sbin/chkconfig
owner=root
group=root
mode=755
mode='755'
- name: Oracle | copy oracle.conf file
copy: src=etc_sysctl_d_60_oracle_conf
dest=/etc/sysctl.d/60-oracle.conf
owner=root
group=root
mode=644
mode='644'
- name: Oracle | Load the new kernel parameters
command: service procps start
......@@ -46,7 +46,7 @@
- name: Oracle | Create directory
file: dest='/var/lock/subsys'
state=directory
mode=755
mode='755'
- name: Oracle | Create listener file
command: touch /var/lock/subsys/listener
......@@ -57,7 +57,7 @@
- name: Oracle | Create directory
file: dest='/dev/shm'
state=directory
mode=755
mode='755'
- name: Oracle | Mount tmpfs
command: mount -t tmpfs shmfs -o size=2048m /dev/shm
......@@ -67,7 +67,7 @@
dest=/etc/init.d/shm_load
owner=root
group=root
mode=755
mode='755'
- name: Oracle | add shm load file to bootlist
command: update-rc.d shm_load defaults
......@@ -80,14 +80,14 @@
dest=/opt/oracle_config.sh
owner=root
group=root
mode=755
mode='755'
- name: Oracle | Copy configuration script answers
copy: src=opt_oracle_config_answers
dest=/opt/oracle_config_answers
owner=root
group=root
mode=644
mode='644'
- name: Oracle | Configure Oracle
shell: /opt/oracle_config.sh </opt/oracle_config_answers
......@@ -107,7 +107,7 @@
dest=/opt/{{item}}
owner=root
group=root
mode=755
mode='755'
with_items:
- setup.sh
- setup.sql
......@@ -120,7 +120,7 @@
dest=/opt/{{inventory_hostname}}_{{item[0]}}
owner=root
group=root
mode=755
mode='755'
delegate_to: "{{hostvars[item.1]['ophinex_cadmin_host']}}"
with_nested:
- ['setup_cadmin.sh', 'setup_cadmin.sql']
......@@ -139,7 +139,7 @@
file: path='/var/ophinexfiles/{{oracle_schema}}'
owner=www-data
group=www-data
mode=777
mode='777'
state=directory
delegate_to: "{{item}}"
with_items: '{{ groups["webserver-ophinex"] }}'
......
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