diff --git a/ansible/pbTestScripts/vmDestroy.sh b/ansible/pbTestScripts/vmDestroy.sh index 230ea99812..bc0762e511 100755 --- a/ansible/pbTestScripts/vmDestroy.sh +++ b/ansible/pbTestScripts/vmDestroy.sh @@ -47,6 +47,8 @@ checkOS() { osToDestroy="U20";; "Ubuntu2104" | "U21" | "u21" ) osToDestroy="U21";; + "Ubuntu2204" | "U22" | "u22" ) + osToDestroy="U22";; "CentOS6" | "centos6" | "C6" | "c6" ) osToDestroy="C6" ;; "CentOS7" | "centos7" | "C7" | "c7" ) @@ -66,7 +68,7 @@ checkOS() { "Windows2022" | "Win2022" | "W22" | "w22" ) osToDestroy="W2022";; "all" ) - osToDestroy="U16 U18 U20 U21 C6 C7 C8 D8 D10 FBSD12 Sol10 W2012" ;; + osToDestroy="U16 U18 U20 U21 U22 C6 C7 C8 D8 D10 FBSD12 Sol10 W2012 W2022" ;; "") echo "No OS detected. Did you miss the '-o' option?" ; usage; exit 1;; *) echo "$OS is not a currently supported OS" ; listOS; exit 1; @@ -80,6 +82,7 @@ listOS() { - Ubuntu1804 - Ubuntu2004 - Ubuntu2104 + - Ubuntu2204 - CentOS6 - CentOS7 - CentOS8 diff --git a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/nasm/tasks/main.yml b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/nasm/tasks/main.yml index 3a12fd1170..c559b58138 100644 --- a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/nasm/tasks/main.yml +++ b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/nasm/tasks/main.yml @@ -85,10 +85,19 @@ - (nasm_installed.rc is defined) and ((nasm_installed.rc != 0 ) or (nasm_installed.rc == 0 and nasm.stdout is version_compare('2.13.03', operator='ne')) ) tags: nasm -- name: Running ./configure & make for nasm - shell: cd /tmp/nasm-2.13.03 && CC={{ CC }} ./configure -prefix=/usr/local && make install +- name: Running ./configure & make for nasm ( Not Ubuntu 22+ ) + shell: cd /tmp/nasm-2.13.03 && CC={{ CC }} && ./configure -prefix=/usr/local && make install when: - - (nasm_installed.rc is defined) and ((nasm_installed.rc != 0 ) or (nasm_installed.rc == 0 and nasm.stdout is version_compare('2.13.03', operator='ne')) ) + - (ansible_distribution != "Ubuntu" or ansible_distribution == "Ubuntu" and ansible_distribution_major_version < "22") and (nasm_installed.rc is defined) and ((nasm_installed.rc != 0 ) or (nasm_installed.rc == 0 and nasm.stdout is version_compare('2.13.03', operator='ne')) ) + tags: nasm + +- name: Running ./configure & make for nasm ( Ubuntu 22+ x64 ) + shell: cd /tmp/nasm-2.13.03 && CC={{ CC }} && ./configure -prefix=/usr/local && make install + environment: + CC: "{{ CC }}" + LIBRARY_PATH: /usr/lib/x86_64-linux-gnu + when: + - (ansible_distribution == "Ubuntu" and ansible_distribution_major_version >= "22" and ansible_architecture == "x86_64") and (nasm_installed.rc is defined) and ((nasm_installed.rc != 0 ) or (nasm_installed.rc == 0 and nasm.stdout is version_compare('2.13.03', operator='ne')) ) tags: nasm - name: Remove downloaded packages for nasm diff --git a/ansible/vagrant/Vagrantfile.Ubuntu2204 b/ansible/vagrant/Vagrantfile.Ubuntu2204 new file mode 100644 index 0000000000..5e9b5dacee --- /dev/null +++ b/ansible/vagrant/Vagrantfile.Ubuntu2204 @@ -0,0 +1,27 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +$script = <