Skip to content

Commit 206198b

Browse files
author
William Graef
committed
mv grow root fs to host setup
1 parent 932a924 commit 206198b

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

ocne2/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
- name: Add block storage to an instance
8282
ansible.builtin.include_tasks: "block.yml"
83-
loop: "{{ query('sequence', 'start=1 end='+(block_count)|string) }}"
83+
loop: "{{ query('sequence', 'start=1 end=' + (block_count) | string) }}"
8484
loop_control:
8585
extended: true
8686
vars:

ocne2/create_instance.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,6 @@
292292
- debug_enabled
293293
- inventory_hostname == ansible_play_hosts_all[0]
294294

295-
- name: Grow the root filesystem
296-
ansible.builtin.shell: |
297-
/usr/libexec/oci-growfs -y
298-
register: result
299-
changed_when: result.rc == 0
300-
301295
- name: Configure instance
302296
ansible.builtin.include_tasks: "host_setup.yml"
303297

ocne2/host_setup.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@
3737
- name: Run facts module to get latest information
3838
ansible.builtin.setup:
3939

40+
- name: Grow the root filesystem
41+
ansible.builtin.shell: |
42+
/usr/libexec/oci-growfs -y
43+
become: true
44+
register: result
45+
changed_when: result.rc == 0
46+
4047
- name: Add user account with access to sudo
4148
ansible.builtin.user:
4249
name: "{{ username }}"

0 commit comments

Comments
 (0)