This config is no longer needed
[apex.git] / lib / ansible / playbooks / undercloud_aarch64.yml
1 ---
2 - hosts: all
3   tasks:
4     - name: aarch64 configuration
5       block:
6         - shell: yum -y reinstall grub2-efi shim
7         - copy:
8             src: /boot/efi/EFI/centos/grubaa64.efi
9             dest: /tftpboot/grubaa64.efi
10             remote_src: yes
11         - file:
12             path: /tftpboot/EFI/centos
13             state: directory
14             mode: 0755
15         - copy:
16             content: |
17                      set default=local
18                      set timeout=5
19                      set hidden_timeout_quiet=false
20                      menuentry "local"  {
21                      configfile (hd0,gpt3)/boot/grub2/grub.cfg
22                      }
23             dest: /tftpboot/EFI/centos/grub.cfg
24             mode: 0644
25         - shell: 'openstack-config --set /etc/ironic/ironic.conf pxe uefi_pxe_bootfile_name grubaa64.efi'
26         - systemd:
27             name: openstack-ironic-conductor
28             state: restarted
29             enabled: yes
30         - replace:
31             path: /usr/lib/python2.7/site-packages/ironic/drivers/modules/pxe_grub_config.template
32             regexp: 'linuxefi'
33             replace: 'linux'
34         - replace:
35             path: /usr/lib/python2.7/site-packages/ironic/drivers/modules/pxe_grub_config.template
36             regexp: 'initrdefi'
37             replace: 'initrd'
38         - lineinfile:
39             path: /tftpboot/map-file
40             insertafter: EOF
41             state: present
42             line: ''
43         - shell: "echo 'r ^/EFI/centos/grub.cfg-(.*) /tftpboot/pxelinux.cfg/\\1' | sudo tee --append /tftpboot/map-file"
44         - shell: "echo 'r ^/EFI/centos/grub.cfg /tftpboot/EFI/centos/grub.cfg' | sudo tee --append /tftpboot/map-file"
45         - systemd:
46             name: xinetd
47             state: restarted
48             enabled: yes
49       become: yes